Bizzare “attempt to call a table value” in Lua
snippet in lua

Bizzare “attempt to call a table value” in Lua

user8451

function awesome_next(t, k)
    k, t = next(t, k)
    if not t then return end
    return k, table.unpack(t)
end

for k, a, b, c, d in awesome_next, t do
end