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

x/rimbu/stream/main/fast-iterator.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>
import { type FastIterator } from "https://deno.land/x/rimbu@0.13.0/stream/main/fast-iterator.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.