lua-users home
lua-l archive

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


Hi Liam,

>> next(t, #t) returns the first key in the hash part (if any).

> Does it?
> What does the length operator return for a table which has no array part or has holes?

It should have been "#t > 0 and #t or nil" to account for the case
when #t is zero. For the table with holes it does exactly what I need
as it starts from the key after the hole.

Paul