Skip to content

Commit

Permalink
Fix some typos and style non-uniformities
Browse files Browse the repository at this point in the history
  • Loading branch information
makarichevss authored and trptcolin committed Jan 4, 2023
1 parent 3ddfa8c commit 76b279a
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/koans/02_strings.clj
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"Maybe you want to find the index of the first occurrence of a substring"
(= 0 (string/index-of "hello world" __))

"Or maybe the last index of the same"
"Or maybe the last index of the same substring"
(= __ (string/last-index-of "hello world, hello" "hello"))

"But when something doesn't exist, nothing is found"
Expand Down
2 changes: 1 addition & 1 deletion src/koans/05_sets.clj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"Remember that a set is a *mathematical* set"
(= __ (set '(1 1 2 2 3 3 4 4 5 5)))

"You can ask clojure for the union of two sets"
"You can ask Clojure for the union of two sets"
(= __ (set/union #{1 2 3 4} #{2 3 5}))

"And also the intersection"
Expand Down
4 changes: 2 additions & 2 deletions src/koans/14_recursion.clj
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"Yet it becomes more difficult the more steps you take"
(= '(6 5 4 3 2) (recursive-reverse [2 3 4 5 6]))

"Simple things may appear simple."
"Simple things may appear simple"
(= 1 (factorial 1))

"They may require other simple steps."
"They may require other simple steps"
(= 2 (factorial 2))

"Sometimes a slightly bigger step is necessary"
Expand Down
2 changes: 1 addition & 1 deletion src/koans/15_destructuring.clj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
(let [[first-name last-name :as full-name] ["Stephen" "Hawking"]]
__))

"Break up maps by key"
"Break up maps by keys"
(= "123 Test Lane, Testerville, TX"
(let [{street-address :street-address, city :city, state :state} test-address]
__))
Expand Down
4 changes: 2 additions & 2 deletions src/koans/21_partition.clj
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"If you need to, you can start each sequence with an offset"
(= '((0 1 2) (5 6 7) (10 11 12)) (partition 3 __ (range 13)))

"Consider padding the last sequence with some default values..."
"Consider padding the last sequence with some default values"
(= '((0 1 2) (3 4 5) (6 :hello)) (partition 3 3 [__] (range 7)))

"... but notice that they will only pad up to the given sequence length"
"But notice that they will only pad up to the given sequence length"
(= '((0 1 2) (3 4 5) __) (partition 3 3 [:these :are "my" "words"] (range 7))))
2 changes: 1 addition & 1 deletion src/koans/22_group_by.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[odds evens]))

(meditations
"To categorize a collection by some function, use group-by."
"To categorize a collection by some function, use group-by"
(= __ (group-by count ["hello" "world" "foo" "bar"]))

"You can simulate filter + remove in one pass"
Expand Down
2 changes: 1 addition & 1 deletion src/koans/24_macros.clj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"You can do better than that - hand crafting FTW!"
(= '(* 10 2) (macroexpand '(infix-concise (10 * 2))))

"Things don't always work as you would like them to... "
"Things don't always work as you would like them to"
(= '(+ 10 (2 * 3)) (macroexpand '(infix-concise (10 + (2 * 3)))))

"Really, you don't understand recursion until you understand recursion"
Expand Down

0 comments on commit 76b279a

Please sign in to comment.