@effect-ts/system
Version:
Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.
15 lines • 580 B
TypeScript
import type { Predicate } from "../../../../Function/index.js";
import * as C from "../core.js";
/**
* Takes all elements of the stream until the specified predicate evaluates
* to `true`.
*/
export declare function takeUntil_<R, E, A>(self: C.Stream<R, E, A>, f: Predicate<A>): C.Stream<R, E, A>;
/**
* Takes all elements of the stream until the specified predicate evaluates
* to `true`.
*
* @ets_data_first takeUntil_
*/
export declare function takeUntil<A>(f: Predicate<A>): <R, E>(self: C.Stream<R, E, A>) => C.Stream<R, E, A>;
//# sourceMappingURL=takeUntil.d.ts.map