/** * Swaps the error/value parameters, applies the function `f` and flips the parameters back * * @tsplus static effect/core/stm/STM.Aspects flipWith * @tsplus pipeable effect/core/stm/STM flipWith */ export function flipWith( f: (stm: STM) => STM ) { return (self: STM): STM => f(self.flip).flip }