table:insert()
This is a helpful method to insert data into a table. By default, data is inserted at the end of the table if a position is not specified. See Lua table as list.
You use it like this:
local T = {"apple", "orange"}
table.insert(T,2,"pear")
trace(T[2]) -- pear
Try the above code fragment in the Developing in the Translator.
Â