iteragain
Version:
Javascript Iterable/Iterator/Generator-function utilities.
8 lines • 440 B
TypeScript
import type { IteratorOrIterable } from './types';
/**
* Returns a new iterator of triplets (tuples) of the values in input. The number of triplets will always be two
* fewer than the number of values in this iterator. Will be empty if input has fewer than three values.
*/
export declare function triplewise<T>(arg: IteratorOrIterable<T>): IterableIterator<[T, T, T]>;
export default triplewise;
//# sourceMappingURL=triplewise.d.ts.map