(quote statement)
Create a list.
When you want LISP to treat the statement literally, you use the quote function. Quote prevents LISP from evaluating the statement. The single quote symbol (') is used as a shortcut for the quote function; the two are interchangeable.
Examples
Code | Returns |
---|---|
(quote a) |
A |
(setq x '(1 2 3 4)) |
(1 2 3 4) |
(setq x (quote (1 2 3 4))) |
(1 2 3 4) |
Tell me about...
(lambda arguments expression ...)