// ets_tracing: off import * as T from "../../../../Effect/index.js" import type * as C from "../core.js" import * as MapEffect from "./mapEffect.js" /** * Adds an effect to consumption of every element of the stream. */ export function tap_( self: C.Stream, f: (a: A) => T.Effect ): C.Stream { return MapEffect.mapEffect_(self, (a) => T.as_(f(a), a)) } /** * Adds an effect to consumption of every element of the stream. * * @ets_data_first tap_ */ export function tap(f: (a: A) => T.Effect) { return (self: C.Stream) => tap_(self, f) }