Removes the elements in the specified subrange from the collection.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Xcode 8.0+
The range of the collection to be removed. The bounds of the range must be valid indices of the collection.
All the elements following the specified position are moved to close the gap. This example removes three elements from the middle of an array of measurements.
Calling this method may invalidate any existing indices for use with this collection.
Complexity: O(n), where n is the length of the collection.