iteragain
Version:
Javascript Iterable/Iterator/Generator-function utilities.
11 lines • 508 B
TypeScript
import type { Iteratee } from '../types';
/** An iterator that takes an input Iterator<T> and maps it's values to the type `R`. */
export declare class MapIterator<T, R> implements IterableIterator<R> {
protected iterator: Iterator<T>;
protected iteratee: Iteratee<T, R>;
constructor(iterator: Iterator<T>, iteratee: Iteratee<T, R>);
[Symbol.iterator](): IterableIterator<R>;
next(...args: any[]): IteratorResult<R>;
}
export default MapIterator;
//# sourceMappingURL=MapIterator.d.ts.map