NGS version 0.2.5 auto-generated documentation
Documentation index
The global namespace
times multimethod
times multimethod
Methods
times(
n:
Int
,
cb:
Fun
)
Source:
stdlib.ngs:3169
Call cb n times without arguments.
Parameters
cb
Function to call
Example
r=0; 5.times(F() r=r+2); # r is now 10