func swap<T>(_: inout T, _: inout T) Exchange the values of a and b. Precondition: a and b do not alias each other. Declaration func swap<T>(_ a: inout T, _ b: inout T)
Exchange the values of
a
andb
.Precondition:
a
andb
do not alias each other.Declaration
func
swap
<
T
>
(
_
a
:
inout
T
,
_
b
:
inout
T
)