LISP-32

LISP Primitive

Atoms:

Numeric atoms: numbers, e.g. 3, 1.54
Symbolic atoms: symbols, e.g. John, Mary

Lists:



Lisp Procedures



Basic Lisp Primitives

  1. car - get the first element of the list.

  2. cdr - return the tail of the list (i.e. exclude the first element)

  3. combination of car & cdr:

    getting the 1st element (car x)
    getting the 2nd element (cadr x)
    getting the 3rd element (caddr x) ...



Arithmetic Operations