Exchanges the values of the two arguments.
SDK
- Xcode 6.0.1+
Framework
- Swift Standard Library
Declaration
Parameters
a
The first value to swap.
b
The second value to swap.
Discussion
The two arguments must not alias each other. To swap two elements of a mutable collection, use the swap
method of that collection instead of this function.