government / testdata / quote.gov.lisp

@ da006f04d8870dcf444b3b0380729d78f076b2ea | history


; quote returns its operand as data, unevaluated.
'x                    ;=> x
(quote x)             ;=> x
'(+ 1 2)              ;=> (+ 1 2)
''x                   ;=> (quote x)
'()                   ;=> ()
'T                    ;=> T
'"s"                  ;=> "s"
(car '(+ 1 2))        ;=> +
(== (car '(+ 1 2)) '+)   ;=> T

(quote)               ;=! quote takes 1 operand