Protocol for efficiently dealing with bitsets
Protocol for efficiently dealing with bitsets
(bitset? item)
(contains-range? item sidx eidx)
(intersects-range? item sidx eidx)
(max-set-value item)
(min-set-value item)
(reduce-intersection l data)
(reduce-union l data)
Generic protocol for things that finalize results of reductions. Defaults to deref of instance of IDeref or identity.
Generic protocol for things that finalize results of reductions. Defaults to deref of instance of IDeref or identity.
(finalize this val)
Define a function to mutably add items to a collection. This function must return the collection -- it must be useable in a reduction.
Define a function to mutably add items to a collection. This function must return the collection -- it must be useable in a reduction.
(add-fn l)
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-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.
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.
(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.
Reducer is the basic reduction abstraction as a single object.
Reducer is the basic reduction abstraction as a single object.
(->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.
(->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.
Faster check than satisfies? to see if something is reducible
Faster check than satisfies? to see if something is reducible
(reducible? coll)
Simple protocol for set operations to make them uniformly extensible to new objects.
Simple protocol for set operations to make them uniformly extensible to new objects.
(cardinality item)
Some sets don't work with clojure's count function.
Some sets don't work with clojure's count function.
(contains-fn item)
Return an efficient function for deciding if this set contains a single item.
Return an efficient function for deciding if this set contains a single item.
(difference l r)
(intersection l r)
(set? l)
(union l r)
(xor l r)
(->collection item)
(convertible-to-collection? item)
(->iterable item)
(convertible-to-iterable? item)
(wrap-array ary)
(wrap-array-growable ary ptr)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close