Swap(
var:value1,
var:value2
)
→ none
Swaps the values of the two variables.
Example:
i = "World"; j = "Hello"; Swap(i, j); Output( i + " " + j ); --> Hello World
Swap(
arr:array,
int:index1,
int:index2
)
→ none
Swaps the values of two array elements.