lua-users home
lua-l archive

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


On 18/03/2011, at 6:20 PM, Daurnimator wrote:

> On 18 March 2011 15:14, Geoff Leyland <geoff_leyland@fastmail.fm> wrote:
>>  darray = function(n, ...)
>>   local a = {}
>>   for i = 1, select('#', ...) do a[i] = select(i, ...) end
>>   return a
>>  end
> 
> As a side note, thats a really bad+silly function.
> You will get the same effect with:
> darray = function(n,...)
>    return { ... }
> end

Duh!  Thanks.