| table.insert |
|---|
| Lua function table.insert Summary Inserts a new item into a numerically-keyed table Prototype table.insert (t, pos, value)Description Inserts the value at (optional) position 'pos', renumbering existing elements if necessary to make room. Thus the new element becomes the one with index 'pos'.See Also ... Topics
Lua base functions
Lua bc (big number) functions
Lua bit manipulation functions
Lua coroutine functions
Lua debug functions
Lua io functions
Lua math functions
Lua os functions
Lua package functions
Lua PCRE regular expression functions
Lua script extensions
Lua string functions
Lua table functions
Lua utilities
ScriptingLua functions
table.concat (Concatenates table items together into a string)
table.foreach (Applies a function to each item in a table)
table.foreachi (Applies a function to each item in a numerically-keyed table)
table.getn (Returns the size of a numerically-keyed table)
table.maxn (Returns the highest numeric key in the table)
table.remove (Removes an item from a numerically-keyed table)
table.setn (Sets the size of a table (obsolete))
table.sort (Sorts a table)(Help topic: lua=table.insert)
Documentation contents page |