Is this Lua table an array?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Is this Lua table an array?
- From: "Ashu Sharma" <ashutoshsharma@...>
- Date: Tue, 3 Oct 2006 15:12:25 +0530
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