Browse files

added doc string for IKVReduce

  • Loading branch information...
richhickey committed Apr 11, 2012
1 parent 0ef92ba commit df2b35266fb6c6f791f37a4e6cbd77514ce77838
Showing with 4 additions and 0 deletions.
  1. +4 −0 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]))

0 comments on commit df2b352

Please sign in to comment.