|
3 | 3 |
|
4 | 4 |
|
5 | 5 | (meditations |
6 | | -"usequoteto expressa list" |
7 | | - (= (quote__) (list12345)) |
| 6 | +"Wrap aquotearounda list to suppress evaluation" |
| 7 | + (= (quote(12345)) __) |
8 | 8 |
|
9 | | -"Clojure provide ashotcut" |
10 | | - (= (quote __)'(12345)) |
11 | | -
|
12 | | -"Thequotespecial operator prevents its argument from being evaluated at all" |
| 9 | +"There is ashortcut too!" |
| 10 | + (= (quote __) '(12345)) |
| 11 | + |
| 12 | +"You canquotesymbols as well as lists... without evaluation!" |
13 | 13 | (= __ (let [age9] (quote age))) |
14 | 14 |
|
15 | 15 | "You can use a literal list as a data collection without having Clojure try to call a function" |
16 | 16 | (= (cons1 (__ (23))) (list123) (cons1 [23])) |
17 | 17 |
|
18 | | -"Th quote affects all of itsargument, not just the top level" |
| 18 | +"The quote affects all of itsarguments, not just the top level" |
19 | 19 | (= (list1 __) '(1 (+23))) |
20 | 20 |
|
21 | | -"Syntax-quotehas a few extra features that make it ideal for constructing collectionstobe used as code." |
| 21 | +"Syntax-quote(`) acts similarlytothe normal quote" |
22 | 22 | (= (list __ __ __) `(123) '(123)) |
23 | 23 |
|
24 | | -"Unquote is used to demarcate specific forms as requiring evaluation by prefixing fhem with the symbol ~ within the body of a syntax-quote" |
25 | | - (= (list __ __) `(1 ~(+23)) '(15)) |
26 | | - ) |
| 24 | +"Unquote (~) within a syntax-quoted expression lets you mark specific expressions as requiring evaluation" |
| 25 | + (= (list __ __) `(1 ~(+23)) '(15))) |