Table.remove

From GiderosMobile
Revision as of 11:03, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Removes from table the element at position pos, shifting down other elements to close the space, if ne...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2011.6

Description

Removes from table the element at position pos, shifting down other elements to close the space, if necessary. Returns the value of the removed element. The default value for pos is n, where n is the length of the table, so that a call table.remove(t) removes the last element of table t.

(varies), = table.remove(tablepos,)

'table: (table) table from which to remove element '
pos: (number) index at which to remove element (default is last element) optional
Returns (varies) removed value