lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Adrian Sietsma wrote:
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