Control Functions.times

Executes a callable a given number of times.

Arguments

count
is the number of times to execute the given callable.
body
is a callable to be executed. The body can use a captured variable
i
(loop counter). The body can leave values on stack. These values can by collected into a builtin-list.

Return values

Depend on the callable.

Example

"sl/control" useFile 3 [i print] times LF print (3 [i] times) print
Output:
012 ( 0 1 2 )