method StreamClass.prototype.drop
Private
StreamClass.prototype.drop(count: number): StreamClass<T, E>

Discards the first count elements — positional like StreamClass#take, so values and failures both count (dropping a prefix is an explicit consumer decision).

await Stream.from([1, 2, 3, 4]).drop(2).collect(); // [3, 4]

Parameters

count: number

Return Type

Usage

import { StreamClass } from "lib/stream/stream.ts";