Skip to main content

monoid

functionv1.5

clojure.core.reducers/monoid

Available in:CLJCLJS
(monoid [op ctor])
Builds a combining fn out of the supplied operator and identity constructor. op must be associative and ctor called with no args must return an identity value for it.

No examples yet. Be the first to add one!