UNPKG

@effect-ts/system

Version:

Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.

26 lines (22 loc) 756 B
// ets_tracing: off import type * as C from "../core.js" import * as Merge from "./merge.js" /** * Merges this stream and the specified stream together. New produced stream will * terminate when this stream terminates. */ export function mergeTerminateLeft_<R, R1, E, E1, A, A1>( self: C.Stream<R, E, A>, that: C.Stream<R1, E1, A1> ): C.Stream<R1 & R, E | E1, A | A1> { return Merge.merge_(self, that, "Left") } /** * Merges this stream and the specified stream together. New produced stream will * terminate when this stream terminates. * * @ets_data_first mergeTerminateLeft_ */ export function mergeTerminateLeft<R1, E1, A1>(that: C.Stream<R1, E1, A1>) { return <R, E, A>(self: C.Stream<R, E, A>) => mergeTerminateLeft_(self, that) }