Difference between revisions of "Table.maxn"

From OpenEUO
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
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.length]]
+
[[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.)

String.len

Lua Manual - The length operator #