Works like Array.prototype.slice, returns a new slice of this iterator.
Array.prototype.slice
The input iterator to slice.
The index to start at (inclusive).
Optional
The index to end at (exclusive).
A new iterator that only includes the elements between start and end.
start
end
This does not support negative start and end indices, as it's not possible to know the length of the iterator while iterating.
Works like
Array.prototype.slice
, returns a new slice of this iterator.