Skip to main content
Module

x/rimbu/mod.ts>FastIterator

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
interface FastIterator
implements Iterator<T>
Re-export
import { type FastIterator } from "https://deno.land/x/rimbu@0.13.1/mod.ts";

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

Methods

fastNext(): T | undefined

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

fastNext<O>(otherwise: OptLazy<O>): T | O
next(): IteratorResult<T>

Returns the next IteratorResult.