Module : lang.map

Version : 1.1.0

Module Overview

This module provides lang library map operations defined by the language specification 2020R1.

Functions

entries
I

Returns a map containing [key, member] pair as the value for each key.

filter

Selects the members from a map for which a function returns true.

forEach

Applies a function to each member of a map.

get
I

Returns the member of map m with key k.

hasKey
I

Tests whether m has a member with key k.

iterator
I

Returns an iterator over a map.

keys
I

Returns a list of all the keys of map m.

length
I

Returns number of members of a map.

map

Applies a function each member of a map and returns a map of the result.

reduce

Combines the members of a map using a combining function.

remove
I

Removes a member of a map.

removeAll
I

Removes all members of a map.

removeIfHasKey
I

Removes a member of a map with a given key, if the map has member with the key.

toArray
I

Returns a list of all the members of a map.