maplist — Maps an operation onto all elements key/value and create a list
list
maplist
( | any KEY , |
any VALUE , | |
map MAP , | |
block
EXPR
) ; |
Maps an operation onto all elements key/value pairs of a map and thus creates a list.
For each key/value pair of the map MAP
the expression e
is evaluated in a new block, where the variable KEY
is assigned to the key and VALUE
to the value of the pair. The result is the list of those evaluations.