This is exactly like
dotimesexcept without an (accessible) iteration variable. This saves you from having to name the variable and makes explicit the fact you won't need its value.
The usual conventions are respected:
- An implicit
nilsurrounds the iteration construct.
returnmay be used to terminate the loop immediately without performing any further iterations, returning zero or more values.
- The body of the loop is an implicit