18
This commit is contained in:
parent
a57ebfee96
commit
edaae03c53
1 changed files with 2 additions and 2 deletions
|
|
@ -4,13 +4,13 @@
|
||||||
|
|
||||||
(meditations
|
(meditations
|
||||||
"Wrap a quote around a list to suppress evaluation"
|
"Wrap a quote around a list to suppress evaluation"
|
||||||
(= (quote (1 2 3 4 5)) '(1 2 3 4 5))
|
(= (quote (1 2 3 4 5)) '(1 2 3 4 5))
|
||||||
|
|
||||||
"There is a shortcut too!"
|
"There is a shortcut too!"
|
||||||
(= (quote (1 2 3 4 5)) '(1 2 3 4 5))
|
(= (quote (1 2 3 4 5)) '(1 2 3 4 5))
|
||||||
|
|
||||||
"You can quote symbols as well as lists... without evaluation!"
|
"You can quote symbols as well as lists... without evaluation!"
|
||||||
(= 'age (let [age 9] (quote age)))
|
(= 'age (let [age 9] (quote age)))
|
||||||
|
|
||||||
"You can use a literal list as a data collection without having Clojure try to call a function"
|
"You can use a literal list as a data collection without having Clojure try to call a function"
|
||||||
(= (cons 1 (quote (2 3))) (list 1 2 3) (cons 1 [2 3]))
|
(= (cons 1 (quote (2 3))) (list 1 2 3) (cons 1 [2 3]))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue