Folds over each element of the iterable with a reducer function.
The initial value for the fold is the first element of the iterable.
A right fold can be performed by calling reversed on the iterable first.
type of the item
the iterable
the step function, which takes the accumulator and item
if the iterable is empty
the starting accumulator
Folds over each element of the iterable with a reducer function.
The initial value for the fold is the first element of the iterable.
A right fold can be performed by calling reversed on the iterable first.