Dynamically execute an instruction list

run list

Executes instructions from the list. The list can be created and modified in run time. Code block is recompiled as necessary before it is executed.

Example:

repeat 500 [
  make "l list item 1 + random 4 {fd bk rt ltrandom 100
  print :l
  run :l
]

Output:
(also a drawing)

[fd 90]
[rt 36]
[fd 94]
[rt 55]
...

See also:

List

Table of Content