Ballerina API Documentation

Functions of ballerina.lang.maps package

function keys(map m) (string[] )

Returns an array of keys contained in the specified map

Parameters:

Parameter NameData TypeDescription
mmapThe map object

Return Parameters:

Return VariableData TypeDescription
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 NameData TypeDescription
mmapThe map object

Return Parameters:

Return VariableData TypeDescription
intThe number of elements in the map object

function remove(map m, string key)

Removes the specified element from the map

Parameters:

Parameter NameData TypeDescription
mmapThe map object
keystringThe key to be removed


Menu

  • Functions
    • keys(map m) (string[] )
    • length(map m) (int )
    • remove(map m, string key)

Copyright 2017 Ballerina API Documentation