T
Timothy Baron
Simple question: what's the cleanest way to retrieve a key associated
with the maximum value of a hash. For instance, how do I retrieve 'b'
from the following example:
hash = Hash.new
hash['a']=4
hash['b']=10
hash['c']=7
with the maximum value of a hash. For instance, how do I retrieve 'b'
from the following example:
hash = Hash.new
hash['a']=4
hash['b']=10
hash['c']=7