[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Lisp puzzles
From: |
John Cowan |
Subject: |
Re: [Chicken-users] Lisp puzzles |
Date: |
Wed, 22 Apr 2009 09:51:29 -0400 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Elf scripsit:
> are you counting '() (the empty list) as an atom or not? in lisp it
> traditionally isnt an atom, but your definition below indicates it is.
() definitely is an atom. The Lisp 1.5 manual said that atom returned true if
its argument was an atomic symbol, namely NIL, which was the same as (), and
false if its argument was composite. () is certainly not composite, though in
Scheme it is not a symbol. In Common Lisp, it's defined in the same way
I specified: (lambda (x) (not (consp x))).
--
Henry S. Thompson said, / "Syntactic, structural, John Cowan
Value constraints we / Express on the fly." address@hidden
Simon St. Laurent: "Your / Incomprehensible http://www.ccil.org/~cowan
Abracadabralike / schemas must die!"