Module utils
General utility functions.
Note: This module is not part of public API!
Functions
merge (...) | Returns a new table containing the contents of all the given tables. |
Functions
- merge (...)
-
Returns a new table containing the contents of all the given tables.
Tables are iterated using pairs, so this function is intended for tables
that represent associative arrays. Entries with duplicate keys are
overwritten with the values from a later table.
Parameters:
- ... {table,...} The tables to merge.
Returns:
-
table
A new table.