Hoogle Search

Within LTS Haskell 24.60 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. lookup :: Eq a => a -> [(a, b)] -> Maybe b

    ghc-internal GHC.Internal.Data.List

    lookup key assocs looks up a key in an association list. For the result to be Nothing, the list must be finite.

    Examples

    >>> lookup 2 []
    Nothing
    
    >>> lookup 2 [(1, "first")]
    Nothing
    
    >>> lookup 2 [(1, "first"), (2, "second"), (3, "third")]
    Just "second"
    

  2. lookup :: Eq a => a -> [(a, b)] -> Maybe b

    ghc-internal GHC.Internal.Data.OldList

    lookup key assocs looks up a key in an association list. For the result to be Nothing, the list must be finite.

    Examples

    >>> lookup 2 []
    Nothing
    
    >>> lookup 2 [(1, "first")]
    Nothing
    
    >>> lookup 2 [(1, "first"), (2, "second"), (3, "third")]
    Just "second"
    

  3. lookup :: Eq a => a -> [(a, b)] -> Maybe b

    ghc-internal GHC.Internal.List

    lookup key assocs looks up a key in an association list. For the result to be Nothing, the list must be finite.

    Examples

    >>> lookup 2 []
    Nothing
    
    >>> lookup 2 [(1, "first")]
    Nothing
    
    >>> lookup 2 [(1, "first"), (2, "second"), (3, "third")]
    Just "second"
    

  4. lookup :: (Eq k, Hashable k) => k -> InsOrdHashMap k v -> Maybe v

    openapi3 Data.HashMap.Strict.InsOrd.Compat

    No documentation available.

  5. lookup :: Ord k => k -> OMap k v -> Maybe v

    ordered-containers Data.Map.Ordered

    No documentation available.

  6. lookup :: Ord k => k -> OMap k v -> Maybe v

    ordered-containers Data.Map.Ordered.Strict

    No documentation available.

  7. lookup :: FastMutableIntMap a -> Int -> IO (Maybe a)

    reflex Data.FastMutableIntMap

    Attempt to lookup an element by key in a FastMutableIntMap

  8. lookup :: Ord k => k -> OMap k v -> Maybe v

    th-desugar Language.Haskell.TH.Desugar.OMap

    No documentation available.

  9. lookup :: Ord k => k -> OMap k v -> Maybe v

    th-desugar Language.Haskell.TH.Desugar.OMap.Strict

    No documentation available.

  10. lookup :: (Val v, MonadFail m) => Label -> Document -> m v

    bson Data.Bson

    Lookup value of field in document and cast to expected type. Fail (Nothing) if field not found or value not of expected type.

Page 7 of many | Previous | Next