/
table:insert()
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.
, multiple selections available,
Related content
table:remove()
table:remove()
More like this
Concatenating strings
Concatenating strings
More like this
Colon Operator
Colon Operator
More like this
String:split()
String:split()
More like this
Dynamic SQL Query Construction
Dynamic SQL Query Construction
More like this
Lua table as list
Lua table as list
More like this