I want to fetch the lowest value in the hash.
Input:
test = {'a'=> 1, 'b'=> 2, 'c' => 0.4, 'd' => 0.32, 'e' => 0.03, 'f' => 0.02, 'g'=> 0.1}
Expected result:
{'f'=> 0.02}
How can I get the expected result?
I need all minimum key/value pairs. if {'a'=>1,'b'=>1,'c'=>2}
the expected result should be {'a'=>1,'b'=>1}
.