lazzy.ts
Version:
Fast and lightweight library for lazy operations with iterable objects.
4 lines • 351 B
TypeScript
import { PromiseValue } from "../common";
export declare function take<T, R, N>(iterator: Iterator<T, R, N>, count: number): Generator<T, R | undefined, undefined>;
export declare function takeAsync<T, R, N>(iterator: AsyncIterator<T, R, N>, count: number): AsyncGenerator<PromiseValue<T>, R | undefined, undefined>;
//# sourceMappingURL=take.d.ts.map