From 31fbc2edcc7dfa63d953e1403055bb3152b1d80d Mon Sep 17 00:00:00 2001 From: Keegan Myers Date: Thu, 13 Oct 2016 16:12:07 -0500 Subject: [PATCH] corrected CLJS reduce-kv --- CHANGELOG.md | 4 ++++ src/linked/map.cljc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b07fdc9..567149c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.2.7 +- Correct CLJS implementation of IKVReduce +Contributed by @KeeganMyers + ## 1.2.6 - Correct implementation of IHashEq diff --git a/src/linked/map.cljc b/src/linked/map.cljc index 2284b24..44d976e 100644 --- a/src/linked/map.cljc +++ b/src/linked/map.cljc @@ -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]