Liking cljdoc? Tell your friends :D

ham-fisted.protocols


->collectionclj

(->collection item)

->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.
raw docstring

->iterableclj

(->iterable item)

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

->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.
raw docstring

add-fnclj

(add-fn l)

BitSetcljprotocol

Protocol for efficiently dealing with bitsets

Protocol for efficiently dealing with bitsets
raw docstring

bitset?clj

(bitset? item)

BulkSetOpscljprotocol


cardinalityclj

(cardinality item)

Some sets don't work with clojure's count function.

Some sets don't work with clojure's count function.
raw docstring

contained-datatypeclj

(contained-datatype o)

Datatype of contained datatype - may be nil if not a container

Datatype of contained datatype - may be nil if not a container
raw docstring

ContainedDatatypecljprotocol


contains-fnclj

(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.
raw docstring

contains-range?clj

(contains-range? item sidx eidx)

convertible-to-collection?clj

(convertible-to-collection? item)

convertible-to-iterable?clj

(convertible-to-iterable? item)

countclj

(count m)

Countedcljprotocol


Datatypecljprotocol


datatypeclj

(datatype o)

Returns the datatype [:int8, :int16, etc] -- if known -- else the type can be assumed to be an object type. The return value may not be a keyword but it must be comparable with identical?

Returns the datatype [:int8, :int16, etc] -- if known --
else the type can be assumed to be an object type.  The return value may not be a keyword
but it must be comparable with identical?
raw docstring

differenceclj

(difference l r)

Finalizecljprotocol

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.
raw docstring

finalizeclj

(finalize this val)

intersectionclj

(intersection l r)

intersects-range?clj

(intersects-range? item sidx eidx)

max-set-valueclj

(max-set-value item)

min-set-valueclj

(min-set-value item)

PAddcljprotocol

Define a function to mutably add items to a collection. This function must return the collection -- it must be useable in a reduce as the rf.

Define a function to mutably add items to a collection.  This function must return
the collection -- it must be useable in a reduce as the rf.
raw docstring

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.
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.
raw docstring

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

reduce-intersectionclj

(reduce-intersection l data)

reduce-unionclj

(reduce-union l data)

Reducercljprotocol

Reducer is the basic reduction abstraction as a single object.

Reducer is the basic reduction abstraction as a single object.
raw docstring

reducible?clj

(reducible? coll)

Reductioncljprotocol

Faster check than satisfies? to see if something is reducible

Faster check than satisfies? to see if something is reducible
raw docstring

returned-datatypeclj

(returned-datatype o)

ReturnedDatatypecljprotocol


serialize->bytesclj

(serialize->bytes o)

SerializeObjBytescljprotocol


set?clj

(set? l)

SetOpscljprotocol

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.
raw docstring

simplified-contained-datatypeclj

(simplified-contained-datatype o)

Exactly :int64 :float64 :object or nil

Exactly :int64 :float64 :object or nil
raw docstring

simplified-datatypeclj

(simplified-datatype o)

Returns exactly :int64, :float64, or :object

Returns exactly :int64, :float64, or :object
raw docstring

simplified-returned-datatypeclj

(simplified-returned-datatype o)

ToCollectioncljprotocol


ToIterablecljprotocol


unionclj

(union l r)

wrap-arrayclj

(wrap-array ary)

wrap-array-growableclj

(wrap-array-growable ary ptr)

WrapArraycljprotocol


xorclj

(xor l r)

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close