Remove unnecessary call to partial in second koan

juxt returns a function that takes a variable number of arguments, so a
partial taking one argument does not need to be created.
This commit is contained in:
Andrew McCluskey 2014-03-19 21:59:40 +07:00
parent c7bd27047a
commit 569aa5e85b

View File

@ -10,7 +10,7 @@
"You can simulate filter + remove in one pass"
(= (get-odds-and-evens [1 2 3 4 5])
((partial (juxt filter remove) odd?) [1 2 3 4 5])
((juxt filter remove) odd? [1 2 3 4 5])
[[1 3 5] [2 4]])
"You can also group by a primary key"