Skip to content

Commit c1576a1

Browse files
authored
Merge pull request #3 from KeeganMyers/fix-cljs-reduce-kv
corrected CLJS reduce-kv
2 parents 6c4b8c5 + 31fbc2e commit c1576a1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.2.7
2+
- Correct CLJS implementation of IKVReduce
3+
Contributed by @KeeganMyers
4+
15
## 1.2.6
26
- Correct implementation of IHashEq
37

src/linked/map.cljc

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

205205
IKVReduce
206206
(-kv-reduce [coll f init]
207-
(reduce (seq coll) f init))
207+
(reduce #(apply (partial f %1) %2) init (seq coll)))
208208

209209
IFn
210210
(-invoke [coll k]

0 commit comments

Comments
 (0)