[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Re[3]: unpack() behaviour not as documented
- From: Peter Cawley <lua@...>
- Date: Fri, 26 Jun 2009 12:22:06 +0100
On Fri, Jun 26, 2009 at 7:08 AM, Vaughan McAlley<ockegheim@gmail.com> wrote:
> What might be nice is an optional argument to unpack that replaces #
> if it is present. Also table.concat and perhaps other functions that
> rely on # rather than stopping at the first nil. So this sort of thing
> would be possible:
table.concat (table [, sep [, i [, j]]])
unpack (list [, i [, j]])
Both of these functions already have optional extra arguments, i and
j, which specify the range to operate over. By default they are 1 and
#table, but you can pass other values.