import * as tsplus_module_1 from "@effect/core/io/Layer/operations/flatMap";
/**
 * Flattens nested layers.
 *
 * @tsplus fluent ets/Layer flatten
 */

export function flatten(self, tag) {
  return tsplus_module_1.flatMap_(self, env => env.get(tag));
}
//# sourceMappingURL=flatten.mjs.map