From Wikipedia, the free encyclopedia
|This article does not cite any sources. (September 2010) (Learn how and when to remove this template message)|
By using a third variable, whose value is otherwise of no concern, to hold the value of the first, and then assigning the second's to the first, and the third's back to the second, the values of the first two are swapped.
let temp = b
let b = a
let a = temp
|This computing article is a stub. You can help Wikipedia by expanding it.|