Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6c00a3e

Browse files
committed
Improve some of the quote descriptions
1 parentbfeaa7c commit6c00a3e

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

‎ideaboard.txt‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
Concepts / Language Features
22
=====
33

4-
Quoting
5-
64
new record syntax
75
Agents
86
Vars

‎resources/koans.clj‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
false
99
"hello"
1010
"hello"
11+
nil
1112
3]}]
1213

1314
["02_strings" {"__" ["hello"
@@ -253,7 +254,7 @@
253254
:park"AT&T Park"
254255
'Giants
255256
"Giants"]}]
256-
["24_quote" {"__"[(12345)
257+
["24_quote" {"__" ['(12345)
257258
(12345)
258259
'age
259260
quote

‎src/koans/24_quote.clj‎

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,23 @@
33

44

55
(meditations
6-
"usequoteto expressa list"
7-
(= (quote__) (list12345))
6+
"Wrap aquotearounda list to suppress evaluation"
7+
(= (quote(12345)) __)
88

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!"
1313
(= __ (let [age9] (quote age)))
1414

1515
"You can use a literal list as a data collection without having Clojure try to call a function"
1616
(= (cons1 (__ (23))) (list123) (cons1 [23]))
1717

18-
"Th quote affects all of itsargument, not just the top level"
18+
"The quote affects all of itsarguments, not just the top level"
1919
(= (list1 __) '(1 (+23)))
2020

21-
"Syntax-quotehas a few extra features that make it ideal for constructing collectionstobe used as code."
21+
"Syntax-quote(`) acts similarlytothe normal quote"
2222
(= (list __ __ __) `(123) '(123))
2323

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp