import * as tsplus_module_1 from "@effect/core/stm/STM/operations/fail";
import * as tsplus_module_2 from "@effect/core/stm/STM/operations/filterOrElseWith";
export const filterOrFailWith_ = filterOrFailWith_1;

function filterOrFailWith_1(self, f, failWith) {
  return tsplus_module_2.filterOrElseWith_(self, f, x => tsplus_module_1.fail(() => failWith(x)));
}

export function filterOrFailWith(f, failWith) {
  return self => filterOrFailWith_1(self, f, failWith);
}
//# sourceMappingURL=filterOrFailWith.mjs.map