Copyright | (c) Alexander Vieth, 2015 |
---|---|
License | BSD3 |
Maintainer | aovieth@gmail.com |
Stability | experimental |
Portability | non-portable (GHC only) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
- lookupWithKey :: Ord k => k -> Map k v -> Maybe (k, v)
Documentation
lookupWithKey :: Ord k => k -> Map k v -> Maybe (k, v) Source
Lookup a key in a map and get back the actual key as well. Useful when the key Eq instance is not quite so sharp.