University of Washington • CSE583 • D. Notkin
©
2000
19
The empty list
l
()
is the empty list literal
–
In Lisp, this is the same as
nil
; in some
Scheme implementations, it is the same as
#f
as well
l
(cons 6 ())
®
(6)
–
The second argument to
cons
must be a list
l
(cdr (cons 6 ())
®
()
l
(cdr 6)
®
???