input iterator
static (fill) value
start iteration index (inclusive)
end iteration index (non-inclusive)
iterator
var randu = require( `@stdlib/random/iter/randu` );
var iter = iterFill( randu(), 3.14, 0, 2 );
var r = iter.next().value;
// returns 3.14
r = iter.next().value;
// returns 3.14
r = iter.next().value;
// returns <number>
// ...
Returns an iterator which replaces all values from a provided iterator from a start index to an end index with a static value.
Notes
end
exceeds the length of the provided iterator, the returned iterator replaces the subsequence of iterated values starting frombegin
until the last iterated value of the provided iterator.Symbol.iterator
, the returned iterator is iterable.