CrossClj

1.10.0-alpha4 docs

SourceDocs



RECENT
    VARS
    CollReduce
    IKVReduce
    interface-or-naive-reduce
    InternalReduce
    iter-reduce
    naive-seq-reduce
    seq-reduce

    « Index of all namespaces of this project

    protocol
    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-reduce coll f)(coll-reduce coll f val)
    protocol
    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-reduce amap f init)
    Private
    (interface-or-naive-reduce coll f val)
    Reduces via IReduceInit if possible, else naively.
    
    protocol
    Protocol for concrete seq types that can reduce themselves
    faster than first/next recursion. Called by clojure.core/reduce.
    (internal-reduce seq f start)
    Private
    (iter-reduce coll f)(iter-reduce coll f val)
    Private
    (naive-seq-reduce s f val)
    Reduces a seq, ignoring any opportunities to switch to a more
    specialized implementation.
    Private
    (seq-reduce coll f)(seq-reduce coll f val)