mapk multimethod

Methods

mapk(h:Hash, mapper:Fun) Source: stdlib.ngs:3363
Map Hash keys. Build new Hash with same values as in h but keys mapped by mapper.

Parameters

hSource hash
mapperFunction to be called with keys

Returns

Hash

Example

mapk({"a": 1}, F(k) k+"z")  # {"az": 1}