Module : lang.map

Module Overview

This module provides lang library map operations defined by the language specification 2019R2.

Objects

$anonType$2

Functions

entries

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

filter

Returns a new map constructed from those elements of 'm' for which func returns true.

forEach

Applies func to each member of m.

get

Returns the member of map m with key k. Panics if m does not have a member with key k.

hasKey

Tells whether m has a member with key k.

iterator

Returns an iterator over the members of m.

keys

Returns a list of all the keys of map m.

length

Returns number of members in m.

map

Return a map with the result of applying function func to each member of map m.

reduce

Reduce operate on each member of m using combining function func to produce a new value combining all members of m.

remove

Removes the member of m with key k and returns it. Panics if there is no such member.

removeAll

Removes all members of m. Panics if any member cannot be removed.