Returning the inside of a table from a function
snippet in lua

Returning the inside of a table from a function

user8427

fun = function()
  some_table = {1,2,3}
  return (table.unpack or unpack)(some_table)
end
print(fun())