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
| Name | Type |
|---|---|
T | unknown |
Parameters
| Name | Type |
|---|---|
next | () => IteratorResult<T, any> |
Returns
IterableIterator<T>