government / testdata / quote.gov.lisp

@ f06eb39c982d1ea91f18e6b8af90fc31f87ae5f0 | 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