kong.table
Returns a table with a pre-allocated number of slots in its array and hash parts.
Parameters
- nrec (
number
, optional): Specifies the number of slots to pre-allocate in the hash part.
Returns
- : The newly created table.
Clears all array and hash parts entries from a table.
Parameters
- tab (
table
): The table to be cleared.
Returns
Merges the contents of two tables together, producing a new one. The entries of both tables are copied non-recursively to the new one. If both tables have the same key, the second one takes precedence. If only one table is given, it returns a copy.
Parameters
- t1 (, optional): The first table.
- t2 (
table
, optional): The second table.
Returns
- : The (new) merged table.