import * as tsplus_module_1 from "@effect/core/io/Effect/operations/succeedNow";
import * as tsplus_module_2 from "@tsplus/stdlib/data/Maybe/map";
import * as tsplus_module_3 from "@effect/core/io/Effect/operations/continueOrFailEffect";
/**
 * Fail with `e` if the supplied `PartialFunction` does not match, otherwise
 * succeed with the returned value.
 *
 * @tsplus fluent ets/Effect continueOrFail
 */

export function continueOrFail_(self, e, pf, __tsplusTrace) {
  return tsplus_module_3.continueOrFailEffect_(self, e, a => tsplus_module_2.map_(pf(a), tsplus_module_1.succeedNow), __tsplusTrace);
}
/**
 * Fail with `e` if the supplied `PartialFunction` does not match, otherwise
 * succeed with the returned value.
 *
 * @tsplus static ets/Effect/Aspects continueOrFail
 */

export const continueOrFail = (e, pf, __tsplusTrace) => self => continueOrFail_(self, e, pf, __tsplusTrace);
//# sourceMappingURL=continueOrFail.mjs.map