@idealic/poker-engine
Version:
Professional poker game engine and hand evaluator with built-in iterator utilities
11 lines • 544 B
TypeScript
/**
* Functions for creating chunks of elements from an iterable
*/
import type { AnyIterable } from './types';
/**
* Creates a function that chunks elements of an iterable into arrays of specified size
* If concurrency is provided, processes the iterable concurrently
*/
export declare function chunk<T>(input: AnyIterable<T>, size: number, concurrency?: number): AsyncGenerator<T[]>;
export declare function chunk<T>(size: number, concurrency?: number): (input: AnyIterable<T>) => AsyncGenerator<T[]>;
//# sourceMappingURL=chunk.d.ts.map