Skip to content

Commit

Permalink
added doc string for IKVReduce
Browse files Browse the repository at this point in the history
  • Loading branch information
richhickey committed Apr 11, 2012
1 parent 0ef92ba commit df2b352
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/clj/clojure/core/protocols.clj
Expand Up @@ -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.