Difference between revisions of "Table.maxn"
From OpenEUO
(Created page with " table.maxn (table) Returns the largest positive numerical index of the given table, or zero if the table has no positive numerical indices. (To do its job this function does a ...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
Returns the largest positive numerical index of the given table, or zero if the table has no positive numerical indices. (To do its job this function does a (potentially computationally expensive) linear traversal of the whole table.) | Returns the largest positive numerical index of the given table, or zero if the table has no positive numerical indices. (To do its job this function does a (potentially computationally expensive) linear traversal of the whole table.) | ||
+ | |||
+ | [[String.len]] | ||
+ | |||
+ | [http://www.lua.org/manual/5.1/manual.html#2.5.5 Lua Manual - The length operator #] |
Latest revision as of 12:50, 9 October 2010
table.maxn (table)
Returns the largest positive numerical index of the given table, or zero if the table has no positive numerical indices. (To do its job this function does a (potentially computationally expensive) linear traversal of the whole table.)