Function 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

NameDescription
range mutable input range
value which value to fill the range with
startIndex at which index to start filling the range
endIndex at which index to stop filling the range (this index is not filled)

Since

0.0.1