import * as tsplus_module_1 from "@effect/core/io/Effect/operations/failNow";
import * as tsplus_module_2 from "@tsplus/stdlib/data/Maybe/map";
import * as tsplus_module_3 from "@effect/core/io/Effect/operations/rejectEffect";
/**
 * Fail with the returned value if the `PartialFunction` matches, otherwise
 * continue with our held value.
 *
 * @tsplus fluent ets/Effect reject
 */

export function reject_(self, pf, __tsplusTrace) {
  return tsplus_module_3.rejectEffect_(self, a => tsplus_module_2.map_(pf(a), tsplus_module_1.failNow), __tsplusTrace);
}
/**
 * Fail with the returned value if the `PartialFunction` matches, otherwise
 * continue with our held value.
 *
 * @tsplus static ets/Effect/Aspects reject
 */

export const reject = (pf, __tsplusTrace) => self => reject_(self, pf, __tsplusTrace);
//# sourceMappingURL=reject.mjs.map