UNPKG

lazzy.ts

Version:

Fast and lightweight library for lazy operations with iterable objects.

4 lines 382 B
import { PromiseValue } from "../common"; export declare function map<T, R, N, V>(iterator: Iterator<T, R, N>, transformer: (v: T, index: number) => V): Generator<V, R, undefined>; export declare function mapAsync<T, R, N, V>(iterator: AsyncIterator<T, R, N>, transformer: (v: PromiseValue<T>, index: number) => V): AsyncGenerator<V, R, undefined>; //# sourceMappingURL=map.d.ts.map