lua-users home
lua-l archive

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


> How can one easily find out the number of records stored in a table?
> I think that there should be a convenient idiom for such a common task.

Is it really a such a common task? I never felt the need for that.
Occasionally, some people need to know whether a table is empty or not,
and for that the idiom is "next(t)==nil".
--lhf