Iteration
data class Iteration(val interval: Interval, val iterator: VariableReference, val body: List<Instruction>) : ControlStructure
Iteration Instruction. Iterates over every integer in interval with an iterator variable, and executes the instructions in body for each iteration.
Parameters
interval
The Interval to iterate through.
iterator
A VariableReference to the iterator variable.
body
A list of Instructions to execute on each iteration.