Skip to content

clojure.core/quote

View this page on ClojureDocs

Type: var Added: Clojure unknown Examples: 4 Runnable: 1
()

Yields the unevaluated form. See http://clojure.org/special_forms for more information.

Examples

by dakrone on . May have evaluation errors.
by Dimagog on
by Bost on . May have evaluation errors.
by soulawaker on . May have evaluation errors.

Note by gstamp

Quote gives you the unevaluated form. That is:

user=> '(foo bar baz)

Will not attempt to evaluate foo as a function but rather just return the data structure as is (with the three symbols unevaluated).

Note by santeron

I found this blog post interesting: http://blog.8thlight.com/colin-jones/2012/05/22/quoting-without-confusion.html

Cheers

Note by kumarshantanu

The blog-post linked above has moved to https://8thlight.com/insights/quoting-without-confusion

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.