I want to use min(5,10), or Math.max(4,7). Are there functions to this effect in Ruby?
min(5,10)
Math.max(4,7)
def find_largest_num(nums) nums.sort[-1] end