Drop-in replacement for
core/reduce, where order doesn’t matter.
(fold reducef coll)
(fold combinef reducef coll)
(fold n combinef reducef coll)
Folds over a collection using a parallel reduce-combine strategy. Collection is partitioned into chunks of approximately
n (default 512), and folded over with
t/tesser. Unlike reducers
fold, this function does not preserve order.
(reduce f init coll)
clojure.core/reduce, but parallel, usingt/tesser
chunks. Unlikecore/reduce`, does not preserve order, init must be an identity element, f must be associative, etc.