Removes the specified subrange of elements from the collection.
- Xcode 10.0+
- Swift Standard Library
The subrange of the collection to remove. The bounds of the range must be valid indices of the collection.
Calling this method may invalidate any existing indices for use with this collection.
Complexity: O(n), where n is the length of the collection.