I don't find any documention about MonoidAggregator. What is it for ?
An example of its use:
MultiAggregator(
...,
Aggregator.forall[T](_.use)).andThenPresent(...)
...,
)
forAll return a MonoidAggregator.
Whould it be roughly the same as setting the prepare to return the zero if _use == false ?
A MonoidAggregator is just an Aggregator that has an underlying Monoid rather than Semigroup. This means you can apply it to an empty sequence and not get an exception.
So, basically a monoid aggregator is: