University of Washington • CSE583 • D. Notkin © 2000
21
Quoting
lHow can we distinguish list literals from function invocations?
–(cdr (cons 6 ())) ® ()
–(cdr (cons (7 8) ()))
® error [function 7 not known]
–(cdr (cons (quote (7 8)) ()))
 ® ()
–quote (‘) and list are special forms
–(cdr (cons ‘ (7 8) ()))
–(list 7 8)