I'm trying to go through "The Little Lisper" and already running into snags in the first chapter. I'm relatively new to Emacs (which has fueled my interest in learning Lisp and clojure). I downloaded the Mit-scheme app, and am working the exercises on Edwin.
I'm trying:
(atom? (cons a l))
where a is an atom and l is a list already defined. I get the following error:
;Unbound variable: atom?
Why? I have no problems using the "null?" function. I thought "atom?" is an internal function checking to see if the value returned is an atom.
Any explanation would be much appreciated. I still haven't set up my emacs to run scheme, and the minor differences between all the lisp dialects is testing my patience.
atom?
predicate. However you can easily implement your own: stackoverflow.com/questions/5404707/… – Anders Lindahlatom?
is not a function in Common Lisp (which clisp implements). In fact, in Common Lisp predicates are typically named with a "p" suffix, so the nameatom?
does suggest Scheme. – Elias Mårtenson