Methods
each
ΒΆ
each(r:
NumRange
, cb:
Fun
)
Iterates over the elements of r, passing each in turn to cb.
Source:
stdlib.ngs:747
cb
Function to be called with values from r
Returns
r
Example
s=0 (1...10).each(F(i) { global s; s+=i }) echo(s) # Outputs: 55