如何在 Fs2 中将块流转换为常规流
How to convert Stream of chunks to regular Stream in Fs2
例如:
chunked = Stream(1, 2, 3).chunks
val regular = ???
谢谢。
好的,我找到了 here:
val regular = chunked.flatMap(c => Stream.chunk(c))
例如:
chunked = Stream(1, 2, 3).chunks
val regular = ???
谢谢。
好的,我找到了 here:
val regular = chunked.flatMap(c => Stream.chunk(c))