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