Skip to content

Commit

Permalink
corrected CLJS reduce-kv
Browse files Browse the repository at this point in the history
  • Loading branch information
KeeganMyers committed Oct 13, 2016
1 parent 6c4b8c5 commit 31fbc2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.2.7
- Correct CLJS implementation of IKVReduce
Contributed by @KeeganMyers

## 1.2.6
- Correct implementation of IHashEq

Expand Down
2 changes: 1 addition & 1 deletion src/linked/map.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@

IKVReduce
(-kv-reduce [coll f init]
(reduce (seq coll) f init))
(reduce #(apply (partial f %1) %2) init (seq coll)))

IFn
(-invoke [coll k]
Expand Down

0 comments on commit 31fbc2e

Please sign in to comment.