Home Manual Reference Source

References

summary
private

F _window(n: number, iterable: IterableIterator): IterableIterator

Repeatedly yields the same deque that is updated to contain the current element of the input iterable iterator and the next n-1 elements of the input iterable iterator.

public

F window(n: number, iterable: Iterable): IterableIterator<Array>

Yields arrays that contain the current element of the input iterable and the next n-1 elements of the input iterable.