RosettaCodeData/Task/Generic-swap/Lua/generic-swap-2.lua

5 lines
117 B
Lua

x, y = 3, 4
print(x, y) --> 3 4
x, y = y, x -- swap
print(x, y) --> 4 3