Citrine/EN | Manual

[ Object ] recursion.

☞ Roundabout ≔ Object new.
Roundabout on: ‘circle:’ do: { :x
✎ write: x, stop.
(x < 3) true: { ⛏ recursive circle: x + 1. }.
}.
Roundabout circle: 1.
1
2
3