"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.orElse = exports.orElse_ = void 0;
// ets_tracing: off
const core_1 = require("./core");
/**
 * Executes this effect and returns its value, if it succeeds, but
 * otherwise executes the specified effect.
 */
function orElse_(self, that, __trace) {
    return (0, core_1.tryOrElse_)(self, that, core_1.succeed, __trace);
}
exports.orElse_ = orElse_;
/**
 * Executes this effect and returns its value, if it succeeds, but
 * otherwise executes the specified effect.
 *
 * @ets_data_first orElse_
 */
function orElse(that, __trace) {
    return (self) => orElse_(self, that, __trace);
}
exports.orElse = orElse;
//# sourceMappingURL=orElse.js.map