input iterator
start iteration index (inclusive; default: 0)
end iteration index (non-inclusive)
iterator
var randu = require( `@stdlib/random/iter/randu` );
var iter = iterSlice( randu(), 10, 20 );
var r = iter.next().value;
// returns <number>
r = iter.next().value;
// returns <number>
r = iter.next().value;
// returns <number>
// ...
Returns an iterator which returns a subsequence of iterated values from a provided iterator.
Notes
end
exceeds the length of the provided iterator, the returned iterator returns the subsequence of iterated values starting frombegin
until the last iterated value of the provided iterator.Symbol.iterator
, the returned iterator is iterable.