[Number] to: [number] step: [step] do: [block] | Manual

[Number] to: [number] step: [step] do: [block]

Runs the specified block for each step it takes to go from the start value to the target value using the specified step size. This is basically how you write for-loops in Citrine.
Usage:


 1 to: 5 step: 1 do: { :step Pen write: 'this is step #'+step. }.

back to homepage
back to manual menu

This API reference guide has been generated automatically from source code comments using the shtml.ctr script.