Fix grammar and formatting in group by koan

This commit is contained in:
Bryant 2015-07-12 17:37:21 -07:00
parent b1ea905c57
commit 93e76cb56a

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}]}