summaryrefslogtreecommitdiffhomepage
path: root/clojure.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'clojure.html.markdown')
-rw-r--r--clojure.html.markdown7
1 files changed, 5 insertions, 2 deletions
diff --git a/clojure.html.markdown b/clojure.html.markdown
index 24250a87..12611fd3 100644
--- a/clojure.html.markdown
+++ b/clojure.html.markdown
@@ -2,6 +2,7 @@
language: clojure
author: Adam Bard
author_url: http://adambard.com/
+filename: test.clj
---
Clojure is a variant of LISP developed for the Java Virtual Machine. It has
@@ -59,10 +60,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