table.setn

Sets the size of a table (obsolete)

Prototype

table.setn (t, n)

Description

This has been removed from Lua 5.1. Attempting to call it will raise an error. The length of a table can not be set, it is implied by the highest numeric key, providing there are no gaps in the sequence of numeric keys.

Lua functions

Topics