// ets_tracing: off import type { Predicate } from "../../../../Function/index.js" import * as SK from "../../Sink/index.js" import type * as C from "../core.js" import * as PipeThrough from "./pipeThrough.js" /** * Drops all elements of the stream for as long as the specified predicate * evaluates to `true`. */ export function dropWhile_( self: C.Stream, f: Predicate ): C.Stream { return PipeThrough.pipeThrough(self, SK.dropWhile(f)) } /** * Drops all elements of the stream for as long as the specified predicate * evaluates to `true`. * * @ets_data_first dropWhile_ */ export function dropWhile(f: Predicate) { return (self: C.Stream) => dropWhile_(self, f) }