@effect-ts/system
Version:
Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.
16 lines (13 loc) • 447 B
text/typescript
// ets_tracing: off
import * as CK from "../../../../Collections/Immutable/Chunk/index.js"
import * as CH from "../../Channel/index.js"
import * as C from "../core.js"
/**
* Submerges the chunks carried by this stream into the stream's structure, while
* still preserving them.
*/
export function flattenChunks<R, E, A>(
self: C.Stream<R, E, CK.Chunk<A>>
): C.Stream<R, E, A> {
return new C.Stream(CH.mapOut_(self.channel, CK.flatten))
}