Answers for "lua unpack 5.4"

Lua
0

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}))
Posted by: Guest on May-07-2022

Browse Popular Code Answers by Language