These are from algebra.Monoid
Returns an instance of
T calculated by summing all instances in iter in one pass.
Returns an instance of
T calculated by summing all instances in iter in one pass. Returns None if
iter is empty, else Some[
T].
instances of
T to be combined
None if iter is empty, else an option value containing the summed
T
Compacting monoid for batched values.
This monoid ensures that the batch's tree structure has fewer than
batchSizevalues in it. When more values are added, the tree is compacted usingm.