UNPKG

@jhel/iterup

Version:

A TypeScript iterator utility library that provides lazy evaluation for efficient data processing

34 lines 861 B
/** * Extension methods and type definitions for the Iterup interface. * * This module defines the extension methods that are dynamically added to * Iterup instances, providing a fluent interface for iterator operations. */ import { collect, cycle, drop, enumerate, filter, filterMap, findMap, flatMap, fold, forEach, map, max, min, reduce, sum, take, zip, } from "./methods"; /** * Object mapping extension method names to their implementations. * Used by the Proxy to dynamically provide extension methods on Iterup instances. */ export const Extensions = { filterMap, findMap, collect, toArray: collect, enumerate, drop, take, flatMap, map, filter, cycle, zip, fold, reduce, forEach, }; export const NumericExtensions = { sum, min, max, }; //# sourceMappingURL=extensions.js.map