File Table.lua

Functions

CET:Copy (tbl, cache) Create a copy of a table.
CET:HasKey (tbl, key) Check if a table has the supplied key.
CET:HasValue (tbl, value) Check if a table contains the supplied value.

Tables

Command.Extensions.Table Table containing all Table methods.


Functions

CET:Copy (tbl, cache)
Create a copy of a table.

Parameters:

  • tbl: Table to copy.
  • cache: Cache used for recursion.

Return value:

    A copy of the supplied table without references.
CET:HasKey (tbl, key)
Check if a table has the supplied key.

Parameters:

  • tbl: Table to check.
  • key: Key to search for.

Return value:

    True if the key was found, false otherwise.
CET:HasValue (tbl, value)
Check if a table contains the supplied value.

Parameters:

  • tbl: Table to check.
  • value: Value to search for.

Return value:

    True if the value was found, false otherwise.

Tables

Command.Extensions.Table
Table containing all Table methods. This is referenced "CET" in Table.lua.

Fields:

  • type: No current use.

Valid XHTML 1.0!