How to convert Stream of chunks to regular Stream in Fs2

Viewed 915

For example:

chunked = Stream(1, 2, 3).chunks val regular = ???

Thank you.

1 Answers

Ok, I've found it here:

val regular = chunked.flatMap(c => Stream.chunk(c))

Related