Methods
each
ΒΆ
each(h:
Hash
, cb:
Fun
)
Iterate a Hash.
Source:
stdlib.ngs:1604
h
Hash to iterate
cb
Function to call with successive keys and values
Returns
h
Example
{"a": 1, "b": 2}.each(F(k, v) echo("$k=$v")) # Outputs: "a=1" and on the next line "b=2"