arrow-fx-coroutines / arrow.fx.coroutines.stream / foldMonoid

foldMonoid

fun <O> Stream<O>.foldMonoid(MO: Monoid<O>): Stream<O>

Folds this stream with the monoid for O.

Return Either a singleton stream or a never stream:

Do you like Arrow?

Arrow Org
<