arrow-fx-coroutines / arrow.fx.coroutines.stream / fold
fun <O, O2>
Pull
<O,
Unit
>.fold(initial: O2, f: (O2, O) -> O2):
Pull
<
Nothing
, O2>
Folds all inputs using an initial value z
and supplied binary operator, and writes the final
result to the output of the supplied Pull
when the stream has no more values.
Do you like Arrow?
✖