The Importance of Lists
Lists represent both programs and data!
Three basic operations on lists:
CAR returns the head of a list
(car '(a b c))
a
CDR returns the tail of a list
(cdr '(a b c))
(b c)
CONS adds an item to the front of a list
(cons 'a '(b c))
(a b c)
Previous slide
Next slide
Back to first slide
View graphic version