UNPKG

lazzy.ts

Version:

Fast and lightweight library for lazy operations with iterable objects.

8 lines 693 B
import { ILazyCollectionAsync } from "../contracts"; export declare function lazyPartition<T, R, N>(iterator: Iterator<T, R, N>, predicate: (value: T, index: number) => boolean): Generator<ILazyCollectionAsync<T, void, undefined>, R, undefined>; /** * This is temporary solution. This is a good solution, but we should return an AsyncGenerator. * @todo We should refactor this function. It should be an AsyncGenerator. */ export declare function lazyPartitionAsync<T, R, N>(iterator: AsyncIterator<T, R, N>, predicate: (value: T, index: number) => boolean | Promise<boolean>): Generator<ILazyCollectionAsync<T, void, undefined>, void, undefined>; //# sourceMappingURL=lazyPartition.d.ts.map