Example Program (continued)
Functional (continued)
- Program extracting the first element of a list
(defun getfirst (list) define a function
(car (list))) get the first element of the list
- LISP operator “car” used to extract the first part of a list. If list is a portion of the LISP program itself, that statement can be extracted and the program can be changed