mapmap — Maps an operation onto all key/value pairs of a map
map
mapmap
( | any | KEY , |
any | VALUE , | |
map | MAP , | |
block | EXPR
) ; |
Maps an operation onto all key/value pairs of the map MAP and thus creates a new map. For each key/value pair of the map MAP the expression EXPR is evaluated in a new context, where the variable KEY is assigned to the key and VALUE to the value of the pair. The result is the map of those evaluations.
The result of each evaluation must be a map with a single entry which will be added to the result map.