Swapping
The binary swap operator <->
can be used to exchange the values of two variables. It is only allowed in a statement and is not allowed in expressions.
Both sides of the swap operation must be variable, assignment to constants is invalid.
Both sides of the swap operation must be an identifier, followed by one or more index or access expressions.
Last updated