Miki Tebeka <email@example.com> wrote:
| Hello Benny,
| > a number or a word(using number? and word?). I wonder if there are some
| > other cases I shall check for before confirming the argument is "atomic".
| (define (atom? obj) (not (pair? obj)))
| will do.
That's certainly *exactly* the Common Lisp definition. But I'm
wondering if there aren't times when you might want this instead...
(define (atom? obj) (not (or (pair? obj) (null? obj))))
Rob Warnock, 8L-855 firstname.lastname@example.org
Applied Networking http://reality.sgi.com/rpw3/
Silicon Graphics, Inc. Phone: 650-933-1673
2011 N. Shoreline Blvd. FAX: 650-964-0811
Mountain View, CA 94043 PP-ASEL-IA