Module :
lang.table
Module Overview
This module provides lang library operations on table
values defined by the language specification 2020R1.
add |
Adds a member |
filter |
Selects the members from a table for which a function returns true. |
forEach |
Applies a function to each member of a table. |
get |
Returns the member of table |
hasKey |
Tests whether |
iterator |
Returns an iterator over a table. |
keys |
Returns a list of all the keys of table |
length |
Returns number of members of a table. |
map |
Applies a function each member of a table and returns a table of the result. |
nextKey |
Returns the next available integer key. |
put |
Adds a member |
reduce |
Combines the members of a table using a combining function. |
remove |
Removes a member of a table. |
removeAll |
Removes all members of a table. |
removeIfHasKey |
Removes a member of a table with a given key, if the table has member with the key. |
toArray |
Returns a list of all the members of a table. |