Functions -
lang.map
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 |
forEach | Applies |
get | Returns the member of map |
hasKey | Tells whether m has a member with key |
iterator | Returns an iterator over the members of |
keys | Returns a list of all the keys of map |
length | Returns number of members in |
map | Return a map with the result of applying function |
reduce | Reduce operate on each member of |
remove | Removes the member of |
removeAll | Removes all members of |
Returns a map containing [key, member] pair as the value for each key.
Parameters
- m map
-
the map
-
Return Type
(map) map of [key, member] pairs
Returns a new map constructed from those elements of 'm' for which func
returns true.
Parameters
- m map
-
the map
-
Return Type
(map) new map containig members which evaluate function 'func' to true
Applies func
to each member of m
.
Returns the member of map m
with key k
.
Panics if m
does not have a member with key k
.
-
Return Type
(Type) member matching key
k
Tells whether m has a member with key k
.
-
Return Type
(boolean) true if m has a member with key
k
Returns an iterator over the members of m
.
Parameters
- m map
-
the map
-
Return Type
($anonType$2) iterator object
Returns a list of all the keys of map m
.
Parameters
- m map
-
the map
-
Return Type
(string[]) list of all keys
Returns number of members in m
.
Parameters
- m map
-
the map
-
Return Type
(int) number of members in the map
Return a map with the result of applying function func
to each member of map m
.
-
Return Type
(map) new map containing result of applying function
func
to each member
Reduce operate on each member of m
using combining function func
to produce
a new value combining all members of m
.
-
Return Type
(Type1) result of applying combining function to each member of the map
Removes the member of m
with key k
and returns it.
Panics if there is no such member.
-
Return Type
(Type) removed member
Removes all members of m
.
Panics if any member cannot be removed.
Parameters
- m map
-
the map