// ets_tracing: off import { identity } from "../../../../Function/index.js" import type * as O from "../../../../Option/index.js" import type * as C from "../core.js" import * as RefineOrDieWith from "./refineOrDieWith.js" /** * Keeps some of the errors, and terminates the fiber with the rest */ export function refineOrDie_( self: C.Stream, pf: (e: E) => O.Option ): C.Stream { return RefineOrDieWith.refineOrDieWith_(self, pf, identity) } /** * Keeps some of the errors, and terminates the fiber with the rest * * * @ets_data_first refineOrDie_ */ export function refineOrDie(pf: (e: E) => O.Option) { return (self: C.Stream) => refineOrDie_(self, pf) }