@effect-ts/system
Version:
Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.
21 lines (19 loc) • 637 B
JavaScript
import * as SK from "../../Sink/index.mjs";
import * as Run from "./run.mjs";
/**
* Consumes elements of the stream, passing them to the specified callback,
* and terminating consumption when the callback returns `false`.
*/
export function runForEachWhile_(self, f) {
return Run.run_(self, SK.forEachWhile(f));
}
/**
* Consumes elements of the stream, passing them to the specified callback,
* and terminating consumption when the callback returns `false`.
*
* @ets_data_first runForEachWhile_
*/
export function runForEachWhile(f) {
return self => runForEachWhile_(self, f);
}
//# sourceMappingURL=runForEachWhile.mjs.map