import * as tsplus_module_1 from "@effect/core/stm/STM/operations/fail";
import * as tsplus_module_2 from "@effect/core/stm/STM/operations/filterOrElse";
export const filterOrFail_ = filterOrFail_1;

function filterOrFail_1(self, f, e) {
  return tsplus_module_2.filterOrElse_(self, f, () => tsplus_module_1.fail(e));
}

export function filterOrFail(f, e) {
  return self => filterOrFail_1(self, f, e);
}
//# sourceMappingURL=filterOrFail.mjs.map