Methods

mapkΒΆ

mapk(h:Hash, mapper:Fun)

Map Hash keys. Build new Hash with same values as in h but keys mapped by mapper.
Source: stdlib.ngs:1639

h

Source hash

mapper

Function to be called with keys

Returns

Hash

Example

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