UNPKG

288 BTypeScriptView Raw
1declare module "@extra-iterable/cut-at" {
2/**
3 * Breaks iterable at given indices.
4 * @param x an iterable
5 * @param is split indices (sorted)
6 */
7declare function cutAt<T>(x: Iterable<T>, is: Iterable<number>): IterableIterator<T[]>;
8export = cutAt;
9//# sourceMappingURL=cutAt.d.ts.map}