removeLast(_:)
Remove the last N elements, returning the memory they occupy to the uninitialized state.
Declaration
mutating func removeLast(_ k: Int)Discussion
n must not be greater than count
Remove the last N elements, returning the memory they occupy to the uninitialized state.
mutating func removeLast(_ k: Int)n must not be greater than count