import * as tsplus_module_1 from "@tsplus/stdlib/service/Env";
import * as tsplus_module_2 from "@effect/core/io/Layer/operations/map";
/**
 * Projects out part of one of the services output by this layer using the
 * specified function.
 *
 * @tsplus fluent ets/Layer project
 */

export function project_(self, tagA, tagB, f) {
  return tsplus_module_2.map_(self, environment => tsplus_module_1.Env(tagB, f(environment.unsafeGet(tagA))));
}
/**
 * Projects out part of one of the services output by this layer using the
 * specified function.
 *
 * @tsplus static ets/Layer/Aspects project
 */

export const project = (tagA, tagB, f) => self => project_(self, tagA, tagB, f);
//# sourceMappingURL=project.mjs.map