arrow-fx-coroutines / arrow.fx.coroutines.stream / ResourceOps / foldChunks
suspend fun <B> foldChunks(init: B, f: (B,
Chunk
<O>) -> B):
Resource
<B>
Compiles this stream in to a value by folding
the output chunks together, starting with the provided init
and combining the
current value with each output chunk.
When this method has returned, the stream has not begun execution – this method simply compiles the stream down to the target effect type.
Do you like Arrow?
✖