Methods

each_idx_valΒΆ

each_idx_val(arr:Arr, cb:Fun)

Iterates over the elements of arr, passing each in turn to cb along with index and args: cb(INDEX, ITEM)
Source: stdlib.ngs:1066

Returns

arr

Example

[10,20,30].each_idx_val(F(idx, val) echo("Element #$idx equals to $val"))