[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: table.pack()
- From: Gabríel "A." Pétursson <gabrielp@...>
- Date: Fri, 22 Jan 2010 19:12:49 +0000
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.