This commit is contained in:
Matthew Davidson 2023-01-04 14:38:43 +01:00
parent a57ebfee96
commit edaae03c53

View file

@ -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]))