Name

maplist — Maps an operation onto all elements key/value and create a list

Synopsis

list maplist ( any KEY ,
  any VALUE ,
  map MAP ,
  block EXPR );
 

Parameters

any KEY

any VALUE

map MAP

block EXPR

Return

list

Description

Maps an operation onto all elements key/value pairs of a map and thus creates a list.

Usage

  maplist (`k, `v, $[1:"a", 2:"b"], { return [k+10, v+"x"]; }) -> [ [11, "ax"], [ 12, "bx" ] ]