---
# Contents
[TOC]
---
# Table Manipulation
Global table variable: `table`
---
## Description
The following methods have been added to the built-in Lua
[`table` table](https://www.lua.org/manual/5.3/manual.html#6.6).
---
# Methods
---
## table.clean
table.clean (tbl)
- Removes [nil][LuaNil] values from a table.
- Parameters:
- tbl: _([table][LuaTable])_ The table to be cleaned.
- Returns: _([table][LuaTable])_
- Copy of ___tbl___ with `nil` values removed.
---
## table.concat
table.concat (tbl1, tbl2)
- Merges the contents of one table into another.
- Parameters:
- tbl1: _([table][LuaTable])_ The table receiving the new content.
- tbl2: _([table][LuaTable])_ The table containing the content to be
copied.
---
## table.contains
table.contains (table, o)
- Checks if a table contains a value.
- Parameters:
- table: _([table][LuaTable])_ Table to be checked.
- obj: _([Object][java.lang.Object])_ The object to check for.
- Returns: _([bool][LuaBoolean])_
- `true` if ___obj___ is in ___table___.
---
## table.join
table.join (table, delim)
- Converts a list of strings into a string.
- Parameters:
- table: _([table][LuaTable])_ Table to be joined.
- delim: _([string][LuaString])_ Character(s) to be used as
separator.
- Returns: ([string][LuaString])
- The resulting string.
[java.lang.Object]: https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html
[LuaBoolean]: http://luaj.org/luaj/3.0/api/org/luaj/vm2/LuaBoolean.html
[LuaNil]: http://luaj.org/luaj/3.0/api/org/luaj/vm2/LuaNil.html
[LuaString]: http://luaj.org/luaj/3.0/api/org/luaj/vm2/LuaString.html
[LuaTable]: http://luaj.org/luaj/3.0/api/org/luaj/vm2/LuaTable.html