const fileName_1 = "(@effect/core) _src/stream/SortedByKey/operations/zipAllSortedByKeyRight.ts";
import * as tsplus_module_1 from "@tsplus/stdlib/data/Function";
import * as tsplus_module_2 from "@effect/core/stream/SortedByKey/operations/zipAllSortedByKeyWith";
/**
 * 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.
 *
 * @tsplus fluent ets/SortedByKey zipAllSortedByKeyRight
 * @tsplus fluent ets/Stream zipAllSortedByKeyRight
 */

export function zipAllSortedByKeyRight_(self, ord) {
  return (that, def, __tsplusTrace) => tsplus_module_2.zipAllSortedByKeyWith_(self, ord)(that, def, tsplus_module_1.identity, (_, b) => b, fileName_1 + ":22:78");
}
/**
 * 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.
 *
 * @tsplus static ets/SortedByKey/Aspects zipAllSortedByKeyRight
 */

export const zipAllSortedByKeyRight = ord => self => zipAllSortedByKeyRight_(self, ord);
//# sourceMappingURL=zipAllSortedByKeyRight.mjs.map