Hoogle Search
Within LTS Haskell 22.22 (ghc-9.6.5)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
findWithDefault :: a -> Key -> IntMap a -> acontainers Data.IntMap.Strict The expression (findWithDefault def k map) returns the value at key k or returns def when the key is not an element of the map.
findWithDefault 'x' 1 (fromList [(5,'a'), (3,'b')]) == 'x' findWithDefault 'x' 5 (fromList [(5,'a'), (3,'b')]) == 'a'
findWithDefault :: a -> Key -> IntMap a -> acontainers Data.IntMap.Strict.Internal The expression (findWithDefault def k map) returns the value at key k or returns def when the key is not an element of the map.
findWithDefault 'x' 1 (fromList [(5,'a'), (3,'b')]) == 'x' findWithDefault 'x' 5 (fromList [(5,'a'), (3,'b')]) == 'a'
findWithDefault :: Ord k => a -> k -> Map k a -> acontainers Data.Map.Internal The expression (findWithDefault def k map) returns the value at key k or returns default value def when the key is not in the map.
findWithDefault 'x' 1 (fromList [(5,'a'), (3,'b')]) == 'x' findWithDefault 'x' 5 (fromList [(5,'a'), (3,'b')]) == 'a'
findWithDefault :: Ord k => a -> k -> Map k a -> acontainers Data.Map.Lazy The expression (findWithDefault def k map) returns the value at key k or returns default value def when the key is not in the map.
findWithDefault 'x' 1 (fromList [(5,'a'), (3,'b')]) == 'x' findWithDefault 'x' 5 (fromList [(5,'a'), (3,'b')]) == 'a'
findWithDefault :: Ord k => a -> k -> Map k a -> acontainers Data.Map.Strict The expression (findWithDefault def k map) returns the value at key k or returns default value def when the key is not in the map.
findWithDefault 'x' 1 (fromList [(5,'a'), (3,'b')]) == 'x' findWithDefault 'x' 5 (fromList [(5,'a'), (3,'b')]) == 'a'
findWithDefault :: Ord k => a -> k -> Map k a -> acontainers Data.Map.Strict.Internal The expression (findWithDefault def k map) returns the value at key k or returns default value def when the key is not in the map.
findWithDefault 'x' 1 (fromList [(5,'a'), (3,'b')]) == 'x' findWithDefault 'x' 5 (fromList [(5,'a'), (3,'b')]) == 'a'
findWithDefault :: (Eq k, Hashable k) => v -> k -> HashMap k v -> vunordered-containers Data.HashMap.Internal Return the value to which the specified key is mapped, or the default value if this map contains no mapping for the key.
findWithDefault :: (Eq k, Hashable k) => v -> k -> HashMap k v -> vunordered-containers Data.HashMap.Internal.Strict Return the value to which the specified key is mapped, or the default value if this map contains no mapping for the key.
findWithDefault :: (Eq k, Hashable k) => v -> k -> HashMap k v -> vunordered-containers Data.HashMap.Lazy Return the value to which the specified key is mapped, or the default value if this map contains no mapping for the key.
findWithDefault :: (Eq k, Hashable k) => v -> k -> HashMap k v -> vunordered-containers Data.HashMap.Strict Return the value to which the specified key is mapped, or the default value if this map contains no mapping for the key.