I'm learning programming in Lisp using DrRacket. I don't like it too much but I would like to pass my exam ;)
I have a weird problem - I can't use the atom?
and symbol?
functions. But number?
and string?
both work fine.
> (atom? '())
. . atom?: undefined;
cannot reference an identifier before its definition
> (symbol? A)
. . A: undefined;
cannot reference an identifier before its definition
>
Am I doing something wrong? If not, what's the problem?
I'm using DrRacket 6.0.1 on Mac.