swapAt(_:_:)
Exchange the elements at the two given indices.
Declaration
mutating func swapAt(_ i: MutableSpan<Element>.Index, _ j: MutableSpan<Element>.Index)Parameters
- i:
A valid index into this span.
- j:
A valid index into this span.
Exchange the elements at the two given indices.
mutating func swapAt(_ i: MutableSpan<Element>.Index, _ j: MutableSpan<Element>.Index)A valid index into this span.
A valid index into this span.