windows method
Returns an iterator of slices of this slice over all contiguous windows of length size. The windows overlap. If the slice is shorter than size, the iterator returns no values. Panics if size is zero or less.
Implementation
Iter<Slice<T>> windows(int size) {
if (size <= 0) {
panic("window size must be non-zero");
}
return Iter.fromIterable(_windowsHelper(size));
}