Skip to content

Commit 569aa5e

Browse files
committed
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.
1 parent c7bd270 commit 569aa5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/koans/21_group_by.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
"You can simulate filter + remove in one pass"
1212
(= (get-odds-and-evens [1 2 3 4 5])
13-
((partial (juxt filter remove) odd?) [1 2 3 4 5])
13+
((juxt filter remove) odd? [1 2 3 4 5])
1414
[[1 3 5] [2 4]])
1515

1616
"You can also group by a primary key"

0 commit comments

Comments
 (0)