function pack(...) return {n=select('#",...),...) end
or without the typo's
local function pack(...) return {n=select('#',...),...} end
local function unpack_all(t) return unpack(t,1,t.n) end
Adrian