import * as tsplus_module_1 from "@effect/core/io/Effect/operations/environment";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/flatMap";
/**
 * Effectually accesses the environment of the effect.
 *
 * @tsplus static ets/Effect/Ops environmentWithEffect
 */

export function environmentWithEffect(f, __tsplusTrace) {
  return tsplus_module_2.flatMap_(tsplus_module_1.environment(__tsplusTrace), f, __tsplusTrace);
}
//# sourceMappingURL=environmentWithEffect.mjs.map