import * as tsplus_module_1 from "@effect/core/io/Effect/operations/left";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/unleft";
import * as tsplus_module_3 from "@effect/core/io/Effect/operations/suspendSucceed";
/**
 * Performs the specified operation while "zoomed in" on the `Left` case of an
 * `Either`.
 *
 * @tsplus fluent ets/Effect leftWith
 */

export function leftWith_(self, f, __tsplusTrace) {
  return tsplus_module_3.suspendSucceed(() => tsplus_module_2.unleft(f(tsplus_module_1.left(self, __tsplusTrace)), __tsplusTrace), __tsplusTrace);
}
/**
 * Performs the specified operation while "zoomed in" on the `Left` case of an
 * `Either`.
 *
 * @tsplus static ets/Effect/Aspects leftWith
 */

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