ballerina/lang.table : 0.0.0
Module Overview
The lang.table
module corresponds to the table
basic type.
Functions
[16]
'map | Applies a function to each member of a table and returns a table of the result. |
add | Adds a member to a table. |
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 an table with a particular key. |
hasKey | Tests whether a table has a member with a particular key. |
iterator | Returns an iterator over a table. |
keys | Returns a list of all the keys of a table. |
length | Returns number of members of a table. |
nextKey | Returns the next available integer key. |
put | Adds a member to a table value, replacing any member with the same key value. |
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. |
Types
[2]
KeyType | A type parameter that is a subtype of |
Type | A type parameter that is a subtype of |