import * as tsplus_module_1 from "@effect/core/stm/STM/operations/die";
import * as tsplus_module_2 from "@effect/core/stm/STM/operations/filterOrElse";
export const filterOrDie_ = filterOrDie_1;

function filterOrDie_1(self, f, defect) {
  return tsplus_module_2.filterOrElse_(self, f, () => tsplus_module_1.die(defect));
}

export function filterOrDie(f, defect) {
  return self => filterOrDie_1(self, f, defect);
}
//# sourceMappingURL=filterOrDie.mjs.map