Methods

map_idx_valΒΆ

map_idx_val(arr:Arr, mapper:Fun)

Map an Arr to an Arr (array) of values using mapper mapper is called as mapper(INDEX, ITEM)
Source: stdlib.ngs:1077

Returns

New Arr

Example

echo("Array items: " + [10,20,30].map_idx_val(F(idx, val) "[$idx]=$val").join(", "))
# Outputs: Array items: [0]=10, [1]=20, [2]=30