/** * Recovers from some or all of the error cases. * * @tsplus static effect/core/stm/STM.Aspects catchSome * @tsplus pipeable effect/core/stm/STM catchSome */ export function catchSome( f: (e: E) => Maybe> ) { return (self: STM): STM => self.catchAll((e): STM => f(e).fold(STM.fail(e), identity)) }