Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/core/main/index.ts>FastIterator

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Latest
interface FastIterator
implements Iterator<T>
Re-export
import { type FastIterator } from "https://deno.land/x/rimbu@1.2.1/core/main/index.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.