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

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

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