local x = 10
local y = 20
x, y = y, x
print("x=" .. x)
print("y=" .. y)
Tuesday, May 1, 2012
Lua 의 Multiple assignment 를 이용한 swap
Labels:
Lua
Subscribe to:
Post Comments (Atom)
local x = 10
local y = 20
x, y = y, x
print("x=" .. x)
print("y=" .. y)
No comments:
Post a Comment