Import std.core.values
Swap
function
Public Function Swap<T>(ByRef a: T, ByRef b: T)
Gives each of the two variables the other's value.
Examples
Local a = 1
Local b = 2
Swap(ByRef a, ByRef b)
Expect(a == 2 && b == 1)Report an issue with this page or with FutureBlitz on GitHub.