// ets_tracing: off import type * as T from "../../../../Effect/index.js" import type * as C from "../core.js" import * as RunForEach from "./runForEach.js" /** * Consumes all elements of the stream, passing them to the specified callback. */ export function forEach_( self: C.Stream, f: (a: A) => T.Effect ): T.Effect { return RunForEach.runForEach_(self, f) } /** * Consumes all elements of the stream, passing them to the specified callback. * * @ets_data_first forEach_ */ export function forEach(f: (a: A) => T.Effect) { return (self: C.Stream) => forEach_(self, f) }