UNPKG

@effect-ts/system

Version:

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

33 lines (31 loc) 1.47 kB
import { identity } from "../../../Function/index.mjs"; import * as ZipAllSortedByKeyWith from "./zipAllSortedByKeyWith.mjs"; /** * Zips this stream that is sorted by distinct keys and the specified * stream that is sorted by distinct keys to produce a new stream that is * sorted by distinct keys. Keeps only values from that stream, using the * specified value `default` to fill in missing values. * * This allows zipping potentially unbounded streams of data by key in * constant space but the caller is responsible for ensuring that the * streams are sorted by distinct keys. */ export function zipAllSortedByKeyRight_(self, that, default_, ord) { return ZipAllSortedByKeyWith.zipAllSortedByKeyWith_(self, that, _ => default_, identity, (_, b) => b, ord); } /** * Zips this stream that is sorted by distinct keys and the specified * stream that is sorted by distinct keys to produce a new stream that is * sorted by distinct keys. Keeps only values from that stream, using the * specified value `default` to fill in missing values. * * This allows zipping potentially unbounded streams of data by key in * constant space but the caller is responsible for ensuring that the * streams are sorted by distinct keys. * * @ets_data_first zipAllSortedByKeyRight_ */ export function zipAllSortedByKeyRight(that, default_, ord) { return self => zipAllSortedByKeyRight_(self, that, default_, ord); } //# sourceMappingURL=zipAllSortedByKeyRight.mjs.map