@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) • 526 B
JavaScript
import * as Drop from "./drop.mjs";
import * as DropWhile from "./dropWhile.mjs";
/**
* Drops all elements of the stream until the specified predicate evaluates
* to `true`.
*/
export function dropUntil_(self, f) {
return Drop.drop_(DropWhile.dropWhile_(self, _ => !f(_)), 1);
}
/**
* Drops all elements of the stream until the specified predicate evaluates
* to `true`.
*
* @ets_data_first dropUntil_
*/
export function dropUntil(f) {
return self => dropUntil_(self, f);
}
//# sourceMappingURL=dropUntil.mjs.map