import * as tsplus_module_1 from "@effect/core/io/Effect/operations/as";
import * as tsplus_module_2 from "@effect/core/stream/Stream/operations/mapEffect";
/**
 * Adds an effect to consumption of every element of the stream.
 *
 * @tsplus fluent ets/Stream tap
 */

export function tap_(self, f, __tsplusTrace) {
  return tsplus_module_2.mapEffect_(self, a => tsplus_module_1.as_(f(a), () => a, __tsplusTrace), __tsplusTrace);
}
/**
 * Adds an effect to consumption of every element of the stream.
 *
 * @tsplus static ets/Stream/Aspects tap
 */

export const tap = (f, __tsplusTrace) => self => tap_(self, f, __tsplusTrace);
//# sourceMappingURL=tap.mjs.map