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

No comments for quote. Log in to add a comment.