"use strict"
Object.defineProperty(exports, "__esModule", { value: true })
exports.zipAllRight = exports.zipAllRight_ = void 0
// tracing: off
const Function_1 = require("../../Function")
const zipAllWith_1 = require("./zipAllWith")
/**
 * Zips this stream with another point-wise, and keeps only elements from this stream.
 *
 * The provided default value will be used if the other stream ends before this one.
 */
function zipAllRight_(self, that, default_) {
  return (0, zipAllWith_1.zipAllWith_)(
    self,
    that,
    (_) => default_,
    Function_1.identity,
    (_, o2) => o2
  )
}
exports.zipAllRight_ = zipAllRight_
/**
 * Zips this stream with another point-wise, and keeps only elements from this stream.
 *
 * The provided default value will be used if the other stream ends before this one.
 *
 * @dataFirst zipAllRight_
 */
function zipAllRight(that, default_) {
  return (self) => zipAllRight_(self, that, default_)
}
exports.zipAllRight = zipAllRight
//# sourceMappingURL=zipAllRight.js.map
