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.

  1. findWithDefault :: a -> Key -> IntMap a -> a

    containers 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'
    

  2. findWithDefault :: a -> Key -> IntMap a -> a

    containers 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'
    

  3. findWithDefault :: Ord k => a -> k -> Map k a -> a

    containers 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'
    

  4. findWithDefault :: Ord k => a -> k -> Map k a -> a

    containers 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'
    

  5. findWithDefault :: Ord k => a -> k -> Map k a -> a

    containers 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'
    

  6. findWithDefault :: Ord k => a -> k -> Map k a -> a

    containers 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'
    

  7. findWithDefault :: (Eq k, Hashable k) => v -> k -> HashMap k v -> v

    unordered-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.

  8. findWithDefault :: (Eq k, Hashable k) => v -> k -> HashMap k v -> v

    unordered-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.

  9. findWithDefault :: (Eq k, Hashable k) => v -> k -> HashMap k v -> v

    unordered-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.

  10. findWithDefault :: (Eq k, Hashable k) => v -> k -> HashMap k v -> v

    unordered-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.

Page 3 of many | Previous | Next