// ets_tracing: off import * as T from "../../../../Effect/index.js" import type * as C from "../core.js" import * as ZipAllWithExec from "./zipAllWithExec.js" /** * Zips this stream with another point-wise. The provided functions will be used to create elements * for the composed stream. * * The functions `left` and `right` will be used if the streams have different lengths * and one of the streams has ended before the other. */ export function zipAllWith_( self: C.Stream, that: C.Stream, left: (a: A) => A2, right: (a1: A1) => A3, both: (a: A, a1: A1) => A4 ): C.Stream { return ZipAllWithExec.zipAllWithExec_(self, that, T.parallel, left, right, both) } /** * Zips this stream with another point-wise. The provided functions will be used to create elements * for the composed stream. * * The functions `left` and `right` will be used if the streams have different lengths * and one of the streams has ended before the other. * * @ets_data_first zipAllWith_ */ export function zipAllWith( that: C.Stream, left: (a: A) => A2, right: (a1: A1) => A3, both: (a: A, a1: A1) => A4 ) { return (self: C.Stream) => zipAllWith_(self, that, left, right, both) }