RosettaCodeData/Task/Generic-swap/Lua/generic-swap-1.lua
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

2 lines
139 B
Lua

x, y = y, x -- swap the values inside x and y
t[1], t[2] = t[2], t[1] -- swap the first and second values inside table t