I have a map that has SomeClass -> Double I want to get the SomeClass associated with the smallest value. How do I go about doing this? Ties do not matter and can be broken arbitrarily if that is an issue.
I have a map that has SomeClass -> Double I want to get the
Share
Use
minBy:This gives
"b"as expected.