import * as tsplus_module_1 from "@effect/core/io/Layer/operations/to";
import * as tsplus_module_2 from "@effect/core/io/Layer/operations/and";
/**
 * Feeds the output services of this layer into the input of the specified
 * layer, resulting in a new layer with the inputs of this layer, and the
 * outputs of both layers.
 *
 * @tsplus operator ets/Layer >
 * @tsplus fluent ets/Layer andTo
 */

export function andTo_(self, that) {
  return tsplus_module_2.and_(self, () => tsplus_module_1.to_(self, that));
}
/**
 * Feeds the output services of this layer into the input of the specified
 * layer, resulting in a new layer with the inputs of this layer, and the
 * outputs of both layers.
 *
 * @tsplus static ets/Layer/Aspects andTo
 */

export const andTo = that => self => andTo_(self, that);
//# sourceMappingURL=andTo.mjs.map