[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: unpack
- From: PA <petite.abeille@...>
- Date: Thu, 21 Jun 2007 19:03:10 +0200
On Jun 21, 2007, at 18:41, Robert Ward wrote:
print(unpack(x), unpack(y))
Ah, yes... try unpacks!
function unpacks( ... )
local someValues = {}
for anIndex = 1, select( '#', ... ) do
for _, aValue in ipairs( select( anIndex, ... ) ) do
someValues[ #someValues + 1] = aValue
end
end
return unpack( someValues )
end
print( unpacks( x, y ) )