/** * Submerges the Collections carried by this stream into the stream's structure, * while still preserving them. * * @tsplus getter effect/core/stream/Stream flattenCollection */ export function flattenCollection( self: Stream> ): Stream { return self.map((a) => Chunk.from(a)).unchunks }