ReducersΒΆ
A reducer is a function that takes a stream of data and combines it into a single value. It does this by processing each item one by one and updating an accumulated result.
For example, a reducer can:
Sum a list of numbers.
Count items in a stream.
Build an object or array from incoming values.