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

x/rimbu/stream/custom/index.ts>FastIteratorBase

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class FastIteratorBase
implements FastIterator<T>
Abstract
import { FastIteratorBase } from "https://deno.land/x/rimbu@1.0.3/stream/custom/index.ts";

A base class for FastIterator instances, that takes implements the default next function based on the abstract fastNext function.

Methods

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