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:
@@ -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"
|
||||
|
Reference in New Issue
Block a user