UNPKG

sequency

Version:

Functional sequences for processing iterable data in JavaScript

11 lines (10 loc) 330 B
import Sequence from "./Sequence"; import IndexedValue from "./IndexedValue"; export declare class WithIndex { /** * Returns a new sequence consisting of indexed values for all original elements. * * @returns {Sequence<IndexedValue<T>>} */ withIndex<T>(this: Sequence<T>): Sequence<IndexedValue<T>>; }