import * as tsplus_module_1 from "@effect/core/stm/STM/operations/flip";
/**
 * Swaps the error/value parameters, applies the function `f` and flips the parameters back
 *
 * @tsplus fluent ets/STM flipWith
 */

export function flipWith_(self, f) {
  return tsplus_module_1.flip(f(tsplus_module_1.flip(self)));
}
/**
 * Swaps the error/value parameters, applies the function `f` and flips the parameters back
 *
 * @tsplus static ets/STM/Aspects flipWith
 */

export const flipWith = f => self => flipWith_(self, f);
//# sourceMappingURL=flipWith.mjs.map