lua-users home
lua-l archive

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


On Fri, 2010-01-22 at 21:59 +0300, Alexander Gladysh wrote:
> Hi, list!
> 
> I'm glad table.pack() is here, as it is one of the functions I always
> write myself.

I am more looking for an unpack() that takes an extra first argument, a
number, with the amount of elements to unpack.
It would not break compatibility, as it is always possible to check if
the type of the first argument is either a number or a table.