CONS
an object with two components
first (car)
rest (cdr)
function CONS allocates one
(cons 'a 7) -> (a . 7)
(cons 'a NIL) -> (a)
(cons 'a (cons 'b (cons 'c NIL))) -> (a b c)
Previous slide
Next slide
Back to first slide
View graphic version