removeLast(_:)
Remove the last n elements of this span, returning the memory they occupy to the uninitialized state.
Declaration
mutating func removeLast(_ n: Int)Parameters
- n:
The number of elements to remove.
nmust not be negative or greater thancount.
Discussion
n must not be greater than count.