Monoids accumulate

added by DotNetKicks
11/22/2017 3:33:18 PM

1 Kicks, 247 Views

Since you have an operation that can reduce two values to a single value, you can use that single value as the input for yet another binary operation. This enables you to accumulate, or aggregate, an arbitrary number of values.