(1 to: 9) inject: 0 into: [:prev :i | (prev * 10 + i) printNl]
Standard input is empty
1 12 123 1234 12345 123456 1234567 12345678 123456789
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!