5 lines
113 B
V
5 lines
113 B
V
mut a := 0
|
|
mut b := 1
|
|
println('$a, $b') // 0, 1
|
|
a, b = b, a // no temp variable needed
|
|
println('$a, $b') // 1, 0
|