[gambit-list] newbie question: Little scheme

Bradley Lucier lucier at math.purdue.edu
Sat Jan 30 17:47:22 EST 2010


On Sat, 2010-01-30 at 17:41 -0500, joe tex 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))))

It should be (not (null? x))

Brad





More information about the Gambit-list mailing list