Contents
Table Manipulation
Global table variable: table
Description
The following methods have been added to the built-in Lua
table table.
Methods
table.clean
table.clean tbl
- Removes
nilvalues from a table. - Parameters:
- tbl table The table to be cleaned.
- Returns:
table
Copy of tbl with
nilvalues removed.
table.concat
table.concat tbl1, tbl2
- Merges the contents of one table into another.
- Parameters:
table.contains
table.contains tbl, o
- Checks if a table contains a value.
- Parameters:
- Returns:
bool
trueif obj is in table.
table.join
table.join tbl
table.join tbl, delim
- Converts a list of strings into a string.
- Parameters:
- Returns: string The resulting string.
table.toList
table.toList tbl