table. removeunordered
functionimplementedavailable in: camelot
Removes the value at the specified integer index by replacing it with the last value in the array and shortening the array by one element. The order of values in the array is not preserved.
function table.removeunordered( table: table, index: number?): any?Parameters
| name | type | description |
|---|---|---|
table | table | The table from which to remove a value. |
index | number? | The integer index of the value to remove. If omitted, the last value is removed. |
Returns
value · any? · The removed value, or nil if the index is outside the array bounds.
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
Restrictions
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (LuaTableExtensions system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.