Function Array.clear

Removes all elements.

void clear();

Example

auto v = Array!int([18, 20, 15]);
v.clear();
assert(v.length == 0);
assert(v.capacity == 3);