Functions of ballerina.lang.maps package
function keys(map m) (string[] )
Returns an array of keys contained in the specified map
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
m | map | The map object |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
string[] | string[]: A string array of keys contained in the specified map |
function length(map m) (int )
Returns the length of the specified map
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
m | map | The map object |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
int | The number of elements in the map object |
function remove(map m, string key)
Removes the specified element from the map
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
m | map | The map object |
key | string | The key to be removed |