import * as tsplus_module_1 from "@effect/core/io/Effect/operations/succeedNow";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/failNow";
import * as tsplus_module_3 from "@effect/core/io/Effect/operations/foldEffect";
/**
 * 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 fluent ets/Effect flip
 */

export function flip(self, __tsplusTrace) {
  return tsplus_module_3.foldEffect_(self, tsplus_module_1.succeedNow, tsplus_module_2.failNow, __tsplusTrace);
}
//# sourceMappingURL=flip.mjs.map