// ets_tracing: off import type { Effect } from "./effect.js" import { flip } from "./flip.js" /** * Swaps the error/value parameters, applies the function `f` and flips the parameters back * * @ets_data_first flipWith_ */ export function flipWith( f: (self: Effect) => Effect, __trace?: string ) { return (self: Effect): Effect => flipWith_(self, f, __trace) } /** * Swaps the error/value parameters, applies the function `f` and flips the parameters back */ export function flipWith_( self: Effect, f: (self: Effect) => Effect, __trace?: string ) { return flip(f(flip(self)), __trace) }