Contents

removeSubrange(_:)

Removes the specified subrange of elements from the array.

Declaration

mutating func removeSubrange(_ bounds: Range<Int>)

Parameters

  • bounds:

    The subrange of the array to remove. The bounds of the range must be valid indices of the array.

Discussion

All the elements following the specified subrange are moved to close the resulting gap.