/** * Returns an effect that swaps the error/success cases. This allows you to * use all methods on the error channel, possibly before flipping back. * * @tsplus getter effect/core/io/Effect flip */ export function flip(self: Effect): Effect { return self.foldEffect(Effect.succeed, Effect.fail) }