UNPKG

@thi.ng/transducers

Version:

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

21 lines 650 B
/** * Yields iterator of `src` with the last `numLeft` values of `src` * prepended at the beginning and/or the first `numRight` values * appended at the end. * * @remarks * `numLeft` defaults to 1 and `numRight` defaults to same value as * `numLeft`, therefore wraps both sides by default and throws error if * either `nXXX < 0` or larger than `src.length`. * * See also: * * - {@link extendSides} * - {@link padSides} * * @param src - * @param numLeft - * @param numRight - */ export declare function wrapSides<T>(src: Iterable<T>, numLeft?: number, numRight?: number): IterableIterator<T>; //# sourceMappingURL=wrap-sides.d.ts.map