lua-users home
lua-l archive

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


On May 11, 2010, at 8:48 PM, Alex Davies wrote:

> I've always liked the apairs() suggestion:
> 
> for i,a in apairs(...) do
> print(a)
> end
> 
> Bit cheaper then a table, easy to implement, easy to understand and, like a table, grows linearly with each added element.  And, unlike a table, it can handle nils just fine.
> 
> I'd like to see it become part of baselib in 5.2.

In the meantime:

http://lua-users.org/lists/lua-l/2007-08/msg00359.html