mapkv multimethod

Methods

mapkv(h:Hash, mapper:Fun) Source: stdlib.ngs:3394
Map Hash keys and values. Build new Hash with keys and values mapped by mapper.

Parameters

hSource hash
mapperFunction to be called with keys and values

Example

mapkv({"a": 1}, {[A+"zz", B+10]})  # {"azz": 11}