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