fork download
  1. | fromTo |
  2. fromTo := [:first :last | Generator on: [:g |
  3. | n |
  4. n := first.
  5. [n <= last] whileTrue: [
  6. g yield: n.
  7. n := n + 1
  8. ]
  9. ]].
  10.  
  11. (fromTo value: 1 value: 3) do: [:x | x printNl]
  12.  
Success #stdin #stdout 0.02s 74176KB
stdin
Standard input is empty
stdout
1
2
3