Merge pull request #90 from brymaven/group-by-formatting

Fix grammar and formatting in group by koan
This commit is contained in:
Colin Jones 2015-07-12 20:42:37 -05:00
commit c4639a2c38

View File

@ -6,7 +6,6 @@
[odds evens])) [odds evens]))
(meditations (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"])) (= __ (group-by count ["hello" "world" "foo" "bar"]))
@ -21,7 +20,7 @@
{:id 2 :name "Jennifer"} {:id 2 :name "Jennifer"}
{:id 1 :last-name "Smith"} ])) {:id 1 :last-name "Smith"} ]))
"But be careful when you group by non-required key" "But be careful when you group by a non-required key"
(= {"Bob" [{:name "Bob" :id 1}] (= {"Bob" [{:name "Bob" :id 1}]
"Jennifer" [{:name "Jennifer" :id 2}] "Jennifer" [{:name "Jennifer" :id 2}]
__ [{:last-name "Smith" :id 1}]} __ [{:last-name "Smith" :id 1}]}