times multimethod

Methods

times(n:Int, cb:Fun) Source: stdlib.ngs:3312
Call cb n times without arguments.

Parameters

cbFunction to call

Example

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