summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam <adam@adambard.com>2013-06-29 15:37:42 -0700
committerAdam <adam@adambard.com>2013-06-29 15:37:42 -0700
commit0a65fd6171b7543b1f31e147d207b33504344a26 (patch)
treebccf6fc553cc139b96807c08d9cbbdcea7dcae40
parent2838738a58b7f6f523e456937b90b60ba2f15c0c (diff)
Updated clojure
-rw-r--r--clojure.html.markdown6
1 files changed, 4 insertions, 2 deletions
diff --git a/clojure.html.markdown b/clojure.html.markdown
index 24250a87..c5298aab 100644
--- a/clojure.html.markdown
+++ b/clojure.html.markdown
@@ -59,10 +59,12 @@ and often automatically.
(class false) ; Booleans are java.lang.Boolean
(class nil); The "null" value is called nil
-; If you want to create a literal list of data, use ' to make a "symbol"
+; If you want to create a literal list of data, use ' to stop it from
+; being evaluated
'(+ 1 2) ; => (+ 1 2)
+; (shorthand for (quote (+ 1 2))
-; You can eval symbols.
+; You can eval a quoted list
(eval '(+ 1 2)) ; => 3
; Collections & Sequences