Contents

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. n must not be negative or greater than count.

Discussion

n must not be greater than count.