s repeated n times. This function allocates, fills, and
returns a new array.
ElementEncodingType!S[] replicate(S)(S s, size_t n) if (isDynamicArray!S)s | an input range or a dynamic array |
n | number of times to repeat s |
s repeated n times. This function allocates, fills, and
returns a new array.
repeat.ElementType!S[] replicate(S)(S s, size_t n) if (isInputRange!S && !isDynamicArray!S)ditto