Funzione statica
Nativa
table.insert
Inserts element value at <code>position</code> in <code>tbl</code>, shifting up the elements <code>tbl[position], tbl[position + 1], ···, tbl[#tbl]</code>
Non ancora tradotto
Sintassi
table.insert(tbl, position = #tbl + 1, value = "")
Parametri
| Nome | Tipo | Predefinito | Descrizione |
|---|---|---|---|
tbl
|
table | — | The table to insert the variable into. |
position
facoltativo
|
number | #tbl + 1 |
The position in the table to insert the variable. If the third argument is nil this argument becomes the value to insert at the end of given table. |
value
facoltativo
|
any | "" |
The variable to insert into the table. |
Valore restituito
- number