Hoogle Search
Within LTS Haskell 22.24 (ghc-9.6.5)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapFindWithDefault :: IsMap map => a -> KeyOf map -> map a -> aghc GHC.Cmm.Dataflow.Collections No documentation available.
lookupWithDefaultUFM :: Uniquable key => UniqFM key elt -> elt -> key -> eltghc GHC.Types.Unique.FM No documentation available.
lookupWithDefaultUFM_Directly :: UniqFM key elt -> elt -> Unique -> eltghc GHC.Types.Unique.FM No documentation available.
lookupWithDefaultUniqMap :: Uniquable k => UniqMap k a -> a -> k -> aghc GHC.Types.Unique.Map No documentation available.
lookupWithDefaultVarEnv :: VarEnv a -> a -> Var -> aghc GHC.Types.Var.Env No documentation available.
lookupWithDefaultModuleEnv :: ModuleEnv a -> a -> Module -> aghc GHC.Unit.Module.Env No documentation available.
findWithDefault :: a -> Key -> CharMap a -> aregex-tdfa Data.IntMap.CharMap2 No documentation available.
findWithDefault :: Enum key => a -> key -> EnumMap key a -> aregex-tdfa Data.IntMap.EnumMap2 No documentation available.
findWithDefault :: IsMap map => MapValue map -> ContainerKey map -> map -> MapValue mapmono-traversable Data.Containers Like lookup, but uses a default value when the key does not exist in the map.
findWithDefault :: Ord k => a -> k -> Map k a -> ario RIO.Map 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'