[gambit-list] newbie question: Little scheme
Alex Queiroz
asandroq at gmail.com
Sat Jan 30 17:46:03 EST 2010
Hallo,
On Sat, Jan 30, 2010 at 8:41 PM, joe tex <joetex1 at gmail.com> wrote:
> I am a scheme newbie currently reading "The Little Schemer"
> The book provides the function for atom as follows.
>
> ------- atom.scm----------------
> (define atom?
> (lambda (x)
> (and (not (pair? x)) (not null? x))))
> --------------------------------
>
> However when I use it with Gambit, it shows the following error message.
> as follows:
>
Change (not null? x) to (not (null? x)).
Cheers,
--
-alex
@asandroq
http://www.ventonegro.org/
More information about the Gambit-list
mailing list