Set the length of the array to len. len must be less than or equal to the capacity of the array.
a positive integer
Complexity: O(1).
auto a = Array!int(1, 2, 3); a.forceLength(2); assert(a.length == 2);
See Implementation
Set the length of the array to len. len must be less than or equal to the capacity of the array.