Function Array.get
Returns an array used internally by the array to store its owned elements. The length of the returned array may differ from the size of the allocated memory for the array: the array contains only initialized elements, but not the reserved memory.
inout inout(T[]) get();
Returns
The array with elements of this array.
Example
auto v = Array!int([1, 2, 4]);
auto data = v .get();
assert(data[0] == 1);
assert(data[1] == 2);
assert(data[2] == 4);
assert(data .length == 3);
data = v[1 .. 2] .get();
assert(data[0] == 2);
assert(data .length == 1);