removeSubrange(_:)
Removes the specified subrange of elements from the array.
Declaration
mutating func removeSubrange(_ bounds: some RangeExpression<Int>)Parameters
- bounds:
The subrange of the array to remove. The bounds of the range must be valid indices of the array.