@thi.ng/transducers
Version:
Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations
13 lines • 563 B
TypeScript
import type { Reducer } from "./api.js";
/**
* Reducer which ignores incoming values and instead only counts them,
* optionally using given `start` and `step` counter values.
*
* @param offset -
* @param step -
*/
export declare function count(offset?: number, step?: number): Reducer<any, number>;
export declare function count(src: Iterable<any>): number;
export declare function count(offset: number, src: Iterable<any>): number;
export declare function count(offset: number, step: number, src: Iterable<any>): number;
//# sourceMappingURL=count.d.ts.map