Array.resize

Resize array and initialize newly added elements with initValue.

struct Array(T, size_t chunkSize = 32)
void
resize
(
const(size_t) newLen
,)

Examples

Array!int arr;
arr.resize(100, 1);
assert(arr.length == 100);
assert(arr[50] == 1);

Meta