Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

lua unpack 5.4

-- before Lua 5.3:
print(unpack({1, 2, 4})) -- 1   2   3
-- after Lua 5.3:
print(table.unpack({1, 2, 4}))
 
PREVIOUS NEXT
Tagged: #lua #unpack
ADD COMMENT
Topic
Name
3+1 =