Liking cljdoc? Tell your friends :D

ham-fisted.protocols


ParallelReducercljprotocol

Parallel reducers are simple a single object that you can pass into preduce as opposed to 3 separate functions.

Parallel reducers are simple a single object that you can pass into preduce as
opposed to 3 separate functions.

->merge-fnclj

(->merge-fn item)

Returns the merge function for a parallel reduction. This function takes two accumulators and returns a or modified accumulator.

Returns the merge function for a parallel reduction.  This function takes
two accumulators  and returns a or modified accumulator.
raw docstring

ParallelReductioncljprotocol

Protocol to define a parallel reduction in a collection-specific pathway. Specializations are in impl as that is where the parallelization routines are found.

Protocol to define a parallel reduction in a collection-specific pathway.  Specializations
are in impl as that is where the parallelization routines are found.

preduceclj

(preduce coll init-val-fn rfn merge-fn options)

Container-specific parallelized reduction. Reductions must respect the pool passed in via the options.

Container-specific parallelized reduction.  Reductions must respect the pool passed in via
the options.
raw docstring

Reducercljprotocol

Reducer is the basic reduction abstraction as a single object.

Reducer is the basic reduction abstraction as a single object.

->init-val-fnclj

(->init-val-fn item)

Returns the initial values for a parallel reduction. This function takes no arguments and returns the initial accumulator.

Returns the initial values for a parallel reduction.  This function
takes no arguments and returns the initial accumulator.

->rfnclj

(->rfn item)

Returns the reduction function for a parallel reduction. This function takes two arguments, the accumulator and a value from the collection and returns a new or modified accumulator.

Returns the reduction function for a parallel reduction. This function takes
two arguments, the accumulator and a value from the collection and returns a new
or modified accumulator.

finalizeclj

(finalize item v)

A finalize function called on the result of the reduction after it is reduced but before it is returned to the user. Returning v is a reasonable default.

A finalize function called on the result of the reduction after it is
reduced but before it is returned to the user.  Returning v is a reasonable default.
raw docstring

Reductioncljprotocol

Reduce a collection to an accumulator.

Reduce a collection to an accumulator.

reduceclj

(reduce coll acc rfn)

reducible?clj

(reducible? coll)
raw docstring

ToCollectioncljprotocol

->collectionclj

(->collection item)

convertible-to-collection?clj

(convertible-to-collection? item)

ToIterablecljprotocol

->iterableclj

(->iterable item)

convertible-to-iterable?clj

(convertible-to-iterable? item)

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

× close