Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- keyWithMaxValue :: Ord a => Map k a -> k
Documentation
keyWithMaxValue :: Ord a => Map k a -> k Source #
>>>
keyWithMaxValue $ Map.fromList [('a', 4), ('b', 12), ('c', 6)]
'b'
Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
keyWithMaxValue :: Ord a => Map k a -> k Source #
>>>
keyWithMaxValue $ Map.fromList [('a', 4), ('b', 12), ('c', 6)]
'b'