Methods

mapΒΆ

map(h:Hash, mapper:Fun)

Map a Hash
Source: stdlib.ngs:1640

h

Hash with source keys and values

mapper

Function to be called with keys and values from h

Returns

Arr

Example

{'a': 1, 'b': 2}.map(F(k, v) "${k}-$v")  # ['a-1', 'b-2']