An input range that exposes references to its elements and has assignable elements
A forward range representing the fill pattern.
If filler is empty.
int[] a = [ 1, 2, 3, 4, 5 ]; int[] b = [ 8, 9 ]; fill(a, b); assert(a == [ 8, 9, 8, 9, 8 ]);
int[] a = [ 1, 2, 3, 4 ]; fill(a, 5); assert(a == [ 5, 5, 5, 5 ]);
Assigns value to each element of input range range.
Alternatively, instead of using a single value to fill the range, a filler forward range can be provided. The length of filler and range do not need to match, but filler must not be empty.