2.1 KiB
2.1 KiB
Contents
[TOC]
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 nil values from a table.
- Parameters:
- tbl: (table) The table to be cleaned.
- Returns: (table)
- Copy of tbl with
nilvalues removed.
- Copy of tbl with
table.concat
table.concat (tbl1, tbl2)
- Merges the contents of one table into another.
- Parameters:
table.contains
table.contains (table, o)
- Checks if a table contains a value.
- Parameters:
- Returns: (bool)
trueif obj is in table.
table.join
table.join (table, delim)