From 7ab93a0c38f02bf1194759b248ca1591d9688660 Mon Sep 17 00:00:00 2001 From: Colin Jones Date: Mon, 25 Feb 2013 20:46:19 -0600 Subject: [PATCH] Touch up some grammar & wording --- src/koans/01_equalities.clj | 4 ++-- src/koans/10_lazy_sequences.clj | 6 +++--- src/koans/11_sequence_comprehensions.clj | 7 ++++--- src/koans/20_partition.clj | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/koans/01_equalities.clj b/src/koans/01_equalities.clj index 9d4a6af..0d1a61d 100644 --- a/src/koans/01_equalities.clj +++ b/src/koans/01_equalities.clj @@ -1,8 +1,8 @@ (meditations - "We shall contemplate truth by testing reality, via equality." + "We shall contemplate truth by testing reality, via equality" (= __ true) - "To understand reality, we must compare our expectations against reality." + "To understand reality, we must compare our expectations against reality" (= __ (+ 1 1)) "You can test equality of many things" diff --git a/src/koans/10_lazy_sequences.clj b/src/koans/10_lazy_sequences.clj index 3a88a53..eb5c5f3 100644 --- a/src/koans/10_lazy_sequences.clj +++ b/src/koans/10_lazy_sequences.clj @@ -1,15 +1,15 @@ (meditations - "There are a wide range of ways to generate a sequence" + "There are many ways to generate a sequence" (= __ (range 1 5)) "The range starts at the beginning by default" (= __ (range 5)) - "It's important to only take what you need from a big sequence" + "Only take what you need when the sequence is large" (= [0 1 2 3 4 5 6 7 8 9] (take __ (range 100))) - "You can also limit results by dropping what you don't need" + "Or limit results by dropping what you don't need" (= [95 96 97 98 99] (drop __ (range 100))) diff --git a/src/koans/11_sequence_comprehensions.clj b/src/koans/11_sequence_comprehensions.clj index b967155..9b48583 100644 --- a/src/koans/11_sequence_comprehensions.clj +++ b/src/koans/11_sequence_comprehensions.clj @@ -17,16 +17,17 @@ (for [index __ :when (odd? index)] index)) - "And they trivially allow combinations of the two transformations" + "Combinations these transformations is trivial" (= '(1 9 25 49 81) (map (fn [index] (* index index)) (filter odd? (range 10))) (for [index (range 10) :when __] __)) - "More complex transformations can be formed with multiple binding forms" + "More complex transformations simply take multiple binding forms" (= [[:top :left] [:top :middle] [:top :right] [:middle :left] [:middle :middle] [:middle :right] [:bottom :left] [:bottom :middle] [:bottom :right]] - (for [row [:top :middle :bottom] column [:left :middle :right]] + (for [row [:top :middle :bottom] + column [:left :middle :right]] __))) diff --git a/src/koans/20_partition.clj b/src/koans/20_partition.clj index 1d21dd0..9d3dcc6 100644 --- a/src/koans/20_partition.clj +++ b/src/koans/20_partition.clj @@ -2,7 +2,7 @@ "To split a collection you can use the partition function" (= '((0 1) (2 3)) (__ 2 (range 4))) - "But watch out if there is not enough elements to form n sequences" + "But watch out if there are not enough elements to form n sequences" (= '(__) (partition 3 [:a :b :c :d :e])) "You can use partition-all to also get partitions with less then n elements"