Methods

timesΒΆ

times(n:Int, cb:Fun)

Call cb n times without arguments.
Source: stdlib.ngs:2216

cb

Function to call

Example

r=0; 5.times(F() r=r+2);  # r is now 10