table
Last updated
Last updated
Function | Description |
---|---|
create(...) -> table
Creates a new table and appends the provided values as its members.
append(table: table, value: any)
Appends value
to the end of the specified table
.
insert(table: table, value: any, position: number)
Inserts value
into table
at the specified position
.
remove(table: table, position: number)
Removes the element at the specified position
from table
.
find(table: table, value: any, init: number?) -> any
Finds the value
in table
starting from init
and returns the key of the found value.
sort(table: table, order: function?)
Sorts the elements in table
according to the specified order
function.
length(table: table) -> number
Returns the number of elements in the specified table
.