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.
lookup :: Eq a => a -> [(a, b)] -> Maybe bghc-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"
lookup :: Eq a => a -> [(a, b)] -> Maybe bghc-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"
lookup :: Eq a => a -> [(a, b)] -> Maybe bghc-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"
lookup :: (Eq k, Hashable k) => k -> InsOrdHashMap k v -> Maybe vopenapi3 Data.HashMap.Strict.InsOrd.Compat No documentation available.
lookup :: Ord k => k -> OMap k v -> Maybe vordered-containers Data.Map.Ordered No documentation available.
lookup :: Ord k => k -> OMap k v -> Maybe vordered-containers Data.Map.Ordered.Strict No documentation available.
lookup :: FastMutableIntMap a -> Int -> IO (Maybe a)reflex Data.FastMutableIntMap Attempt to lookup an element by key in a FastMutableIntMap
lookup :: Ord k => k -> OMap k v -> Maybe vth-desugar Language.Haskell.TH.Desugar.OMap No documentation available.
lookup :: Ord k => k -> OMap k v -> Maybe vth-desugar Language.Haskell.TH.Desugar.OMap.Strict No documentation available.
lookup :: (Val v, MonadFail m) => Label -> Document -> m vbson 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.