Given a hash of arrays, I need to get the key for which the first element of the array is minimal.
For instance, for:
h = { :a => [8,9,1], :b => [7,2,3], :c => [1,7,3] }
I'd like to get :c as result because 1 is the min of [8,7,1]
How can I do this elegantly?