Lua: use table as args
snippet in lua

Lua: use table as args

user6431

function test(a,b,c)
   print(a+b+c)
end

myargs = {1,2,3}

test(unpack(myargs)) -- prints "6"