version 1 by Krister Fundin
The built-in syntax for repeating through a range of values is extended so that we can repeat backwards and/or repeat with a stride larger than one:
repeat with N running from (low) to (high) in steps of (step)
repeat with N running backwards from (high) to (low)
repeat with N running backwards from (high) to (low) in steps of (step)
We also provide two other repeat phrases:
repeat (some number) times
The first phrase simply executes the following block a given number of times, while the second one keeps repeating until the loop is explicitly exited, either by returning from the current rule or phrase, or by using the "break" command.