partialreduce

emlib.iterlib.partialreduce(seq, func, start=0)[source]

Return an iterator of the partial values of the reduce operation.

The last value is always equal to reduce(func, seq, start)

Return type:

Iterator[TypeVar(T)]