UNPKG

@thi.ng/transducers

Version:

Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations

13 lines 525 B
import type { Predicate } from "@thi.ng/api"; import type { Reducer } from "./api.js"; /** * Similar to {@link every} reducer, but only requires at least 1 value to * succeed predicate test (and then immediately terminates with `true` as * result). * * @param pred - */ export declare function some<T>(pred?: Predicate<T>): Reducer<T, boolean>; export declare function some<T>(src: Iterable<T>): boolean; export declare function some<T>(pred: Predicate<T>, src: Iterable<T>): boolean; //# sourceMappingURL=some.d.ts.map