Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
lookup :: Key -> Word64Map a -> Maybe aghc-lib-parser GHC.Data.Word64Map.Strict.Internal Lookup the value at a key in the map. See also lookup.
lookup :: Ord k => k -> Map k a -> Maybe aghc-lib-parser GHC.Internal.TH.Lib.Map No documentation available.
lookup :: Eq a => a -> [(a, b)] -> Maybe bghc-lib-parser GHC.Prelude.Basic 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 :: KeyId -> KeyEnv -> Maybe (Some PublicKey)hackage-security Hackage.Security.Key.Env No documentation available.
lookup :: TargetPath -> FileMap -> Maybe FileInfohackage-security Hackage.Security.TUF.FileMap 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 :: Configured a => Config -> Name -> IO (Maybe a)configurator Data.Configurator Look up a name in the given Config. If a binding exists, and the value can be converted to the desired type, return the converted value, otherwise Nothing.
lookup :: Text -> Int -> Context a -> Maybe adhall Dhall.Context Look up a key by name and index
lookup _ _ empty = Nothing lookup k 0 (insert k v c) = Just v lookup k n (insert k v c) = lookup k (n - 1) c lookup k n (insert j v c) = lookup k n c -- k /= j
lookup :: Ord k => k -> Map k v -> Maybe vdhall Dhall.Map Retrieve a key from a Map
lookup k mempty = empty lookup k (x <> y) = lookup k y <|> lookup k x
>>> lookup "A" (fromList [("B",1),("A",2)]) Just 2 >>> lookup "C" (fromList [("B",1),("A",2)]) Nothing