Represent a chain as a sequence
Specialized flow chunker for real buffer
Collect incoming flow into fixed size chunks
Map the whole chain
block must be a pure function or at least not use external random variables, otherwise fork could be broken
Create a copy of current chain state. Consuming resulting chain does not affect initial chain.
Represent a chain as regular iterator (uses blocking calls)
Map the chain result using suspended transformation. Initial chain result can no longer be safely consumed since mapped chain consumes tokens. Accepts regular transformation function.
Generate next value, changing state if needed
Flat map a Flow of Buffer into continuous Flow of elements
Map a flow to a moving window buffer. The window step is one. To get different steps, one could use skip operation.
Zip two chains together using given transformation