loop
Given a do/end block, repeats it forever. Note that once the program enters the loop - it will not move on but will instead stay within the loop. Plain loops like this are like black holes - instead of sucking in the light they suck in the program.
The loop must either sleep
or sync
each time round otherwise it will stop and throw an error. This is to stop the loop from spinning out of control and locking the system.
For a more powerful, flexible loop built for live coding see live_loop
.
Introduced in v2.0
# Example 1 | |
|
|