Array.stableRemoveAny

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

struct Array(T)
alias stableRemoveAny = removeAny

Return Value

The element removed.

Complexity: O(1).

Throws

Exception if the array is empty.

Meta