government / src / internal / lisptest / testdata / quote.gov.lisp

@ 27e33aecf4976d7646339e35c5fff6755a29497c | 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