removeAt

open override fun removeAt(index: Int): T(source)

Removes the element at index and shifts following elements one position to the left.

Decreases size, clears the unused storage slot and invalidates existing iterators.

Return

the removed element.

Parameters

index

zero-based element index, less than size.

Throws

if index is negative or at least size.