/** * Creates a composite effect that represents this effect followed by another * one that may depend on the error produced by this one. * * @tsplus static effect/core/stm/STM.Aspects flatMapError * @tsplus pipeable effect/core/stm/STM flatMapError */ export function flatMapError(f: (e: E) => STM) { return (self: STM): STM => self.flipWith( (_) => _.flatMap(f) ) }