(lispref.info)Quoting


Prev: Forms Up: Evaluation

Quoting
=======

   The special form `quote' returns its single argument "unchanged".

 - Special Form: quote OBJECT
     This special form returns OBJECT, without evaluating it.  This
     allows symbols and lists, which would normally be evaluated, to be
     included literally in a program.  (It is not necessary to quote
     numbers, strings, and vectors since they are self-evaluating.)

     Because `quote' is used so often in programs, Lisp provides a
     convenient read syntax for it.  An apostrophe character (`'')
     followed by a Lisp object (in read syntax) expands to a list whose
     first element is `quote', and whose second element is the object.
     Thus, the read syntax `'x' is an abbreviation for `(quote x)'.

     Here are some examples of expressions that use `quote':

          (quote (+ 1 2))
               => (+ 1 2)
          (quote foo)
               => foo
          'foo
               => foo
          ''foo
               => (quote foo)
          '(quote foo)
               => (quote foo)
          ['foo]
               => [(quote foo)]

   Other quoting constructs include `function' (Note: Anonymous
Functions.), which causes an anonymous lambda expression written in
Lisp to be compiled, and ``' (Note: Backquote.), which is used to
quote only part of a list, while computing and substituting other parts.


automatically generated by info2www