"use strict"
Object.defineProperty(exports, "__esModule", { value: true })
exports.crossRight = exports.crossRight_ = void 0
// tracing: off
const crossWith_1 = require("./crossWith")
/**
 * Composes this stream with the specified stream to create a cartesian product of elements,
 * but keeps only elements from the other stream.
 * The `that` stream would be run multiple times, for every element in the `this` stream.
 *
 * See also `Stream#zip` for the more common point-wise variant.
 */
function crossRight_(self, that) {
  return (0, crossWith_1.crossWith_)(self, that, (_, o2) => o2)
}
exports.crossRight_ = crossRight_
/**
 * Composes this stream with the specified stream to create a cartesian product of elements,
 * but keeps only elements from the other stream.
 * The `that` stream would be run multiple times, for every element in the `this` stream.
 *
 * See also `Stream#zip` for the more common point-wise variant.
 *
 * @dataFirst crossRight_
 */
function crossRight(that) {
  return (self) => crossRight_(self, that)
}
exports.crossRight = crossRight
//# sourceMappingURL=crossRight.js.map
