OM# Documentation

Basic Iteration: repeat-n

repeat-n is a iterator utility which evaluates its first input a number of times (determined by its second input), and collects/returns the successive results as a list.

See also: Advanced iterations: loops

Contrary to a function like create-list, repeat-n actually repeats the evaluation of the input several times. As such, its collected results can vary and depend on program states.

Scope

The optional input scope affects the behavior of boxes that are connected to it, and in the eval-once state.

See also: Eval-Once Mode