Difference between revisions of "Table.maxn"

From OpenEUO
Jump to: navigation, search
 
Line 4: Line 4:
  
 
[[String.len]]
 
[[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 #