Perform a shallow copy of the array.
a new reference to the current array.
Complexity: O(1).
auto stuff = [1, 2, 3]; auto a = Array!int(stuff); size_t i = 0; auto tmp = a.save; while (!tmp.empty) { assert(tmp.front == stuff[i++]); tmp.popFront; } assert(tmp.empty); assert(!a.empty);
See Implementation
Perform a shallow copy of the array.