-
Notifications
You must be signed in to change notification settings - Fork 8
Table
lainz edited this page Jul 22, 2016
·
1 revision
#Table.Concat Returns a string containing some or all the values in a table. The values will be separated by the delimiter of your choice.
Parameters: Table, Separator, Start, End
result_string = Table.Concat({"One", "Two", "Three"}, ";", 1, 3)
- The result in this case will be "One;Two;Three".
#Table.Count Returns the total number of items in a table.
result_number = Table.Count({"January", "February"})
- The result in this case will be 2.
#Table.Insert Inserts an item into a numerically indexed table at a specific position.
Parameters: Table, Position, Value
mytable = {"Lainz", "Circular", "Aradeonas"}
Table.Insert(mytable, 1, "Graeme")
#Table.Remove Removes an item into a numerically indexed table at a specific position.
Parameters: Table, Position
mytable = {"Lainz", "Circular", "Aradeonas"}
Table.Remove(mytable, 1)
#Table.Sort Sorts the items of a numerically indexed table.
Parameters: Table, CompareFunction
mytable = {"Lainz", "Circular", "Aradeonas"}
Table.Sort(mytable, nil)
This is an example of a sort function:
function sorter(v1, v2)
if (v1 > v2) then
return true;
else
return false;
end
end