Slide 8.b: Definitions and basic functions Slide 8.d: COND Home |
'(Dogs are animals.)
except that its first element has been replaced by 'Cats
.
(EQ A1 A2)
, but if you accidentally write (EQ (A1 A2))
, this says to call the function A1
with the parameter A2
, then use the result as the single parameter to EQ.
The following expression creates a new list including two sub-lists by using the instructions LIST and SETQ.
cons
.
Some implementations ignore case.
Some implementations just treat everything as uppercase, regardless of how you type it.
You may use whitespace (blanks, tabs, and newlines) to format LISP programs however you please.