Re:Ruby Tips Part 1
by Xylakant on Monday September 02, 2013 @12:46PM
(#6315914)
yes. The first one does what it's intended to, the second plain fails :)
The second version will only provide any result when a specific max value was given, while the first one will loop into infinity.
[ Parent
| on HN ]
Yes, I messed up. I meant `!max && i < max`.