Monday, April 23, 2012

How do you find a min / max with Ruby?

I want to do something simple and straightforward, like min(5,10), or Math.max(4,7). Are there functions to this effect in Ruby?





No comments:

Post a Comment