1.3.0 permalink Arrow_down_16x16

quote

clojure.core

1 Example top

  • ;; ' is the shortcut for quote
    user> (= 'a (quote a))
    true
    
    ;; quoting keeps something from being evaluated
    user> (quote (println "foo"))
    (println "foo")
    
    => *clojure-version*
    {:major 1, :minor 5, :incremental 0, :qualifier "RC17"}
    => (quote)
    nil
    => (quote 1)
    1
    => (quote 1 2 3 4 5)
    1
    => quote
    CompilerException java.lang.RuntimeException: Unable to resolve symbol: quote in this context, compiling:(NO_SOURCE_PATH:1:42)
    
Log in to add / edit an example.

See Also top

Log in to add a see also.

Comments top

1 comment(s) for quote.

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

Cheers

Log in to add a comment.