"use strict"
Object.defineProperty(exports, "__esModule", { value: true })
exports.orElseFail = exports.orElseFail_ = void 0
const fail_1 = require("./fail")
const orElse_1 = require("./orElse")
/**
 * Fails with given error in case this one fails with a typed error.
 *
 * See also `Stream#catchAll`.
 */
function orElseFail_(self, e) {
  return (0, orElse_1.orElse_)(self, (0, fail_1.fail)(e))
}
exports.orElseFail_ = orElseFail_
/**
 * Fails with given error in case this one fails with a typed error.
 *
 * See also `Stream#catchAll`.
 */
function orElseFail(e) {
  return (self) => orElseFail_(self, e)
}
exports.orElseFail = orElseFail
//# sourceMappingURL=orElseFail.js.map
