Returns a collector that performs a reduction operation on the elements.
an accumulate function
the collector implementation
Seq.reduce