Skip to main content

interface FastIterator<T>

An iterator that extends the default Iterator interface with methods that give more performance.

Type parameters

NameDescription
Tthe element type

Methods

fastNext

Returns the next iterator value, or the given otherwise OptLazy value instead.

Definitions

fastNext(): T | undefined;

fastNext<O>(otherwise: OptLazy<O>): T | O;

next

Returns the next IteratorResult.

Definition

next(): IteratorResult<T>;