UNPKG

@effect-ts/system

Version:

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

28 lines (26 loc) 1.08 kB
// ets_tracing: off import * as Tp from "../../../../Collections/Immutable/Tuple/index.mjs"; import * as ZipAllWith from "./zipAllWith.mjs"; /** * Zips this stream with another point-wise, creating a new stream of pairs of elements * from both sides. * * The defaults `defaultLeft` and `defaultRight` will be used if the streams have different lengths * and one of the streams has ended before the other. */ export function zipAll_(self, that, defaultLeft, defaultRight) { return ZipAllWith.zipAllWith_(self, that, _ => Tp.tuple(_, defaultRight), _ => Tp.tuple(defaultLeft, _), (a, b) => Tp.tuple(a, b)); } /** * Zips this stream with another point-wise, creating a new stream of pairs of elements * from both sides. * * The defaults `defaultLeft` and `defaultRight` will be used if the streams have different lengths * and one of the streams has ended before the other. * * @ets_data_first zipAll_ */ export function zipAll(that, defaultLeft, defaultRight) { return self => zipAll_(self, that, defaultLeft, defaultRight); } //# sourceMappingURL=zipAll.mjs.map