rocinantealpha

reference / running

for each

Runs a block for each item of a list, with a name for the item.

points = [ { 80, 200 } { 160, 100 } { 240, 180 } { 320, 80 } ]for each p in points [ circle at p radius 16 fill gold ]
what it draws: the whole window, 400 by 300
What the example of for each draws

How to write it

for each name in list [ ... ]

Related