table.insert()

table.insert (list, [pos,] value)

Inserts element value at position pos in list, shifting up the elements list[pos], list[pos+1], ยทยทยท, list[#list]. The default value for pos is #list+1, so that a call table.insert(t,x) inserts x at the end of list t.

doc_lua
2017-02-21 04:16:15
Comments
Leave a Comment

Please login to continue.