lazzy.ts
Version:
Fast and lightweight library for lazy operations with iterable objects.
4 lines • 481 B
TypeScript
import { PromiseValue } from "../common";
export declare function filterWithIndex<T, R, N>(iterator: Iterator<T, R, N>, predicate: (value: T, index: number) => boolean): Generator<[T, number], R, undefined>;
export declare function filterWithIndexAsync<T, R, N>(iterator: AsyncIterator<T, R, N>, predicate: (value: PromiseValue<T>, index: number) => boolean | Promise<boolean>): AsyncGenerator<[PromiseValue<T>, number], R, undefined>;
//# sourceMappingURL=filterWithIndex.d.ts.map