lua-users home
lua-l archive

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


Mike Pall wrote:
> I wrote:
I had to write a small function to test if a table is empty. Did I miss something more straightforward?

next(t) == nil

Obvious... in retrospect! :-)
Many thanks.

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --