UNPKG

@thi.ng/transducers

Version:

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

5 lines 293 B
import type { Predicate } from "@thi.ng/api"; import type { Transducer } from "./api.js"; export declare function filter<T>(pred: Predicate<T>): Transducer<T, T>; export declare function filter<T>(pred: Predicate<T>, src: Iterable<T>): IterableIterator<T>; //# sourceMappingURL=filter.d.ts.map