"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.crossRight = crossRight;
exports.crossRight_ = crossRight_;

var _crossWith = /*#__PURE__*/require("./crossWith.cjs");

// ets_tracing: off

/**
 * 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.crossWith_)(self, that, (_, o2) => o2);
}
/**
 * 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.
 *
 * @ets_data_first crossRight_
 */


function crossRight(that) {
  return self => crossRight_(self, that);
}
//# sourceMappingURL=crossRight.cjs.map