removeObject(at:)
Removes the object at index .
Declaration
func removeObject(at index: Int)Parameters
- index:
The index from which to remove the object in the array. The value must not exceed the bounds of the array.
Discussion
To fill the gap, all elements beyond index are moved by subtracting 1 from their index.