Re:Ruby Tips Part 1
by nilved on Monday September 02, 2013 @04:36PM
(#6317069)
What you meant is `while !max || max < i`, but the answer is the same: the former will perform better because it only makes one comparison for each iteration of the loop. The latter needs to additionally check the existence of max.
[ Parent
| on HN ]
There are no comments on this comment yet.