From df2b35266fb6c6f791f37a4e6cbd77514ce77838 Mon Sep 17 00:00:00 2001 From: Rich Hickey Date: Wed, 11 Apr 2012 07:59:48 -0400 Subject: [PATCH] added doc string for IKVReduce --- src/clj/clojure/core/protocols.clj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/clj/clojure/core/protocols.clj b/src/clj/clojure/core/protocols.clj index 1cc00c9116..199ce644dc 100644 --- a/src/clj/clojure/core/protocols.clj +++ b/src/clj/clojure/core/protocols.clj @@ -157,4 +157,8 @@ (emit-array-impls int long float double byte char boolean) (defprotocol IKVReduce + "Protocol for concrete associative types that can reduce themselves + via a function of key and val faster than first/next recursion over map + entries. Called by clojure.core/reduce-kv, and has same + semantics (just different arg order)." (kv-reduce [amap f init]))