fill

Fills a range with a value from startIndex to endIndex

void
fill
(
Range
T
)
(
ref Range range
,
auto ref T value
,
size_t startIndex = 0
,
size_t endIndex = size_t.max
)
if (
from!"std.range".isForwardRange!Range &&
is(T : from!"std.range".ElementType!Range)
&&
is(typeof(range[] = value))
)

Parameters

range
Type: Range

mutable input range

value
Type: T

which value to fill the range with

startIndex
Type: size_t

at which index to start filling the range

endIndex
Type: size_t

at which index to stop filling the range (this index is not filled)

Meta

Since

0.0.1