Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

table.move lua

-- table.move is used for moving elements from one table to another
-- You use it like this

table.move(table1, 2, 4, 10, table2) -- this would move table1[2], table1[2] into table2[10], table2[11]

-- For more in depth and for older than 5.3: https://stackoverflow.com/questions/64514069/what-exactly-does-table-move-do-and-when-would-i-use-it
-- Reference manual: https://www.lua.org/manual/5.4/manual.html#pdf-table.move
 
PREVIOUS NEXT
Tagged: #lua
ADD COMMENT
Topic
Name
9+3 =