Liking cljdoc? Tell your friends :D

clojure.core.protocols


CollReducecljprotocol

Protocol for collection types that can implement reduce faster than first/next recursion. Called by clojure.core/reduce. Baseline implementation defined in terms of Iterable.

Protocol for collection types that can implement reduce faster than
first/next recursion. Called by clojure.core/reduce. Baseline
implementation defined in terms of Iterable.

coll-reduceclj

(coll-reduce coll f)
(coll-reduce coll f val)
raw docstring

Datafiablecljprotocol

datafyclj

(datafy o)

return a representation of o as data (default identity)

return a representation of o as data (default identity)

IKVReducecljprotocol

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).

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-reduceclj

(kv-reduce amap f init)
raw docstring

InternalReducecljprotocol

Protocol for concrete seq types that can reduce themselves faster than first/next recursion. Called by clojure.core/reduce.

Protocol for concrete seq types that can reduce themselves
faster than first/next recursion. Called by clojure.core/reduce.

internal-reduceclj

(internal-reduce seq f start)
raw docstring

navclj

(nav coll k v)

return (possibly transformed) v in the context of coll and k (a key/index or nil), defaults to returning v.

return (possibly transformed) v in the context of coll and k (a key/index or nil),
defaults to returning v.

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close