UNPKG

@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) 433 B
// ets_tracing: off import { identity } from "../../../../Function/index.js" import type * as C from "../core.js" import * as Chain from "./chain.js" /** * Flattens this stream-of-streams into a stream made of the concatenation in * strict order of all the streams. */ export function flatten<R0, E0, R, E, A>( self: C.Stream<R0, E0, C.Stream<R, E, A>> ): C.Stream<R0 & R, E0 | E, A> { return Chain.chain_(self, identity) }