Multitables are a tree-like data structure that allows mapping of many keys to one or more values. Generally if a simpler data structure is possible, it's preferred to use a multitable as a last resort for when mappings are complicated or searching for values across multiple keys is needed.
Returns a new multitable,
mt. The underlying data structure can be accessed at
Returns the value(s) at the specified path (key1→key2→…). Specifying an incomplete path will return a table with the next possible keys as keys, and their values as values.
Sets a value at the specified path.
Assumes that the value at the given path is an array, and adds
value to that array.
Removes the value at a given path. If an incomplete path is given, removes all descendents of the last key.
Searches for values at the given path, matching values are returned in an array. If any key is given as nil then all keys are matched at that level.
Same as mt:search() except that matches are appended to the
results array. Returns