import * as tsplus_module_1 from "@effect/core/stream/Stream/operations/environment";
import * as tsplus_module_2 from "@effect/core/stream/Stream/operations/mapEffect";
/**
 * Accesses the environment of the stream in the context of an effect.
 *
 * @tsplus static ets/Stream/Ops environmentWithEffect
 */

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