| fromTo |
fromTo := [:first :last | Generator on: [:g |
| n |
n := first.
[n <= last] whileTrue: [
g yield: n.
n := n + 1
]
]].
(fromTo value: 1 value: 3) do: [:x | x printNl]
fCBmcm9tVG8gfApmcm9tVG8gOj0gWzpmaXJzdCA6bGFzdCB8IEdlbmVyYXRvciBvbjogWzpnIHwKICAgfCBuIHwKICAgbiA6PSBmaXJzdC4KICAgW24gPD0gbGFzdF0gd2hpbGVUcnVlOiBbCiAgICAgIGcgeWllbGQ6IG4uCiAgICAgIG4gOj0gbiArIDEKICAgXQpdXS4KCihmcm9tVG8gdmFsdWU6IDEgdmFsdWU6IDMpIGRvOiBbOnggfCB4IHByaW50TmxdCg==