5.times {
5.upto(20) {
At least the first one, if possible to use with an integer variable $nr.times{...} it could have some use. The same for the second... easier to read than a typical C for but so easy as a for(5..20) perl for.
What I didn't like, was to use the sin function. Some print 3.4.sin does not work as expected.
Again, Ruby 0 Comments More | Login | Reply /