// ets_tracing: off import type { Predicate } from "../../../../Function/index.js" import type * as C from "../core.js" import * as Drop from "./drop.js" import * as DropWhile from "./dropWhile.js" /** * Drops all elements of the stream until the specified predicate evaluates * to `true`. */ export function dropUntil_( self: C.Stream, f: Predicate ): C.Stream { 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: Predicate) { return (self: C.Stream) => dropUntil_(self, f) }