Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/core/main/exports.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/core/main/exports.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.