s=->a,n,t{p a;s[a+n,n,t]if a+n<=t} puts s[2, 3, 10]puts s[3, 1.5, 12]puts s[3.14159, 2.71828, 10]puts s[0.1, 0.3, 2]
Standard input is empty
2 5 8 3 4.5 6.0 7.5 9.0 10.5 12.0 3.14159 5.85987 8.57815 0.1 0.4 0.7 1.0 1.3 1.6 1.9000000000000001
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!