each_idx_key_val multimethod
Methods
- each_idx_key_val(h:Hash, cb:Fun) Source: stdlib.ngs:2331
Iterate a Hash. Parameters
h Hash to iterate cb Function to call with successive indexes, keys and values Returns
hExample
{"a": 1, "b": 2}.each_idx_key_val(F(idx, k, v) echo("[$idx] $k=$v")) # Outputs: "[0] a=1" and on the next line "[1] b=2"