Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class FlatMapIterator
extends FastIteratorBase<T2>
Re-export
import { FlatMapIterator } from "https://deno.land/x/rimbu@0.13.1/stream/custom/index.ts";

Constructors

new
FlatMapIterator(source: Stream<T>, flatMapFun: (
value: T,
index: number,
halt: () => void,
) => StreamSource<T2>
)

Properties

currentIterator: null | FastIterator<T2>
done: boolean
iterator: FastIterator<T>
readonly
state

Methods

fastNext<O>(otherwise?: OptLazy<O>): T2 | O