UNPKG

331 BTypeScriptView Raw
1declare module "@extra-iterable/cycle" {
2/**
3 * Gives values that cycle through an iterable.
4 * @param x an iterable
5 * @param i start index (0)
6 * @param n number of values (-1 => Inf)
7 */
8declare function cycle<T>(x: Iterable<T>, i?: number, n?: number): IterableIterator<T>;
9export = cycle;
10//# sourceMappingURL=cycle.d.ts.map}