Table.maxn

From OpenEUO
Revision as of 12:50, 9 October 2010 by 76.184.213.234 (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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 #