lua-users home
lua-l archive

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


Hi,
 
I am just wondering if there's a good way of finding whether a given Lua table is actually an array.
 
One way is to iterate over the table using 'pairs' and see if any of the keys is a non-number.
 
Thanks,
Ashutosh