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

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

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