Home  Contents

table.maxn

Table Lua Commands

SYNOPSIS

table.maxn(table)

DESCRIPTION

Returns the largest positive numerical index of the given table, or zero if the table has no positive numerical indices.

NOTES

To do its job this function does a linear traversal of the whole table.