kong.table

    Returns a table with pre-allocated number of slots in its array and hash parts.

    Parameters

    • narr (number, optional): specifies the number of slots to pre-allocate in the array part.
    • nrec (number, optional): specifies the number of slots to pre-allocate in the hash part.

    Returns

    • the newly created table

    Usage

    Clears a table from all of its array and hash parts entries.

    Parameters

    Returns

    • Nothing

    Usage

    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 (table, optional): The first table
    • t2 (table, optional): The second table

    Returns

    Usage