WoW:API tinsert: Difference between revisions

11 bytes removed ,  15 August 2023
m
Move page script moved page API tinsert to WoW:API tinsert without leaving a redirect
(Speed example (tinsert is slooow))
m (Move page script moved page API tinsert to WoW:API tinsert without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{:Lua/Libshortcut|tinsert|table.insert}}
{{luaapi}}
From [http://lua-users.org/wiki/TableLibraryTutorial TableLibraryTutorial] of lua-users.org.
From [http://lua-users.org/wiki/TableLibraryTutorial TableLibraryTutorial] of lua-users.org.


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


Insert a given value into a table. If a position is given insert the value before the element currently at that position:
Insert a given value into a table. If a position is given insert the value before the element currently at that position:
Line 76: Line 77:


== See Also ==
== See Also ==
* [[tinsertbeforeval]]
* [[tinsertbeforeval]]
{{LUA}}
Anonymous user