Methods
each
ΒΆ
each(n:
Int
, cb:
Fun
)
Iterate from zero up to but not including n
Source:
stdlib.ngs:2204
cb
Function to call with current number
Returns
n
Example
10.each(echo) # Outputs numbers from 0 to 9 inclusive, one on each line