ncat - Concatenates table items together into a string table.foreach - Applies a function to each item in a table table.foreachi - Applies a function to each item in a numerically-keyed table table.getn - Returns the size of a numerically-keyed table table.insert - Inserts a new item into a numerically-keyed table table.maxn - Returns the highest numeric key in the table tn - Sets the size of a table (obsolete) table.sort - Sorts a table strings) you simply assign nil to the element to remove it. The Lua authors recommend using this method for removing from the end of a table nowadays:
If 'pos' is omitted it defaults to the end of the table (n), thus removing the last element. Removes the element at position 'pos' from the table, returning the value of the removed element.
This example code must be close, it gets the values to C/C++, but the Lua VM starts to gag and vomit in other areas
Simply put, the C function takes a 3-element position in Lua and converts it to a 3-element position in C/C++. For example, a 3-element position vector.