Array.removeAny

T removeAny()

Removes the last element from the array and returns it. Both stable and non-stable versions behave the same and guarantee that ranges iterating over the array are never invalidated.

Precondition: empty == false

Returns

The element removed.

Complexity: 1.

Throws

Exception if the array is empty.