Skip to content

Endo API documentation - v0.2.0 / Exports / @endo/common / make-iterator

Module: make-iterator

Table of contents

Functions

Functions

makeIterator

makeIterator<T>(next): IterableIterator<T>

Makes a one-shot iterable iterator from a provided next function.

Type parameters

NameType
Tunknown

Parameters

NameType
next() => IteratorResult<T, any>

Returns

IterableIterator<T>

Defined in

make-iterator.js:8