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 :: 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 a => a -> Infinite (a, b) -> binfinite-list Data.List.Infinite Find the first pair, whose first component is equal to the first argument, and return the second component. If there is nothing to be found, this function will hang indefinitely.
lookup :: IsMap k m => k -> m a -> Maybe amorpheus-graphql-core Data.Morpheus.Internal.Utils No documentation available.
lookup :: Eq a => a -> [(a, b)] -> Maybe bnumeric-prelude NumericPrelude 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 bnumeric-prelude NumericPrelude.Base 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 bnumhask NumHask.Prelude 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 :: forall (n :: Natural) a . Fin n -> FinMap n a -> Maybe aparameterized-utils Data.Parameterized.FinMap.Safe O(log n). Fetch the value at the given key in the map.
lookup :: forall (n :: Natural) a . Fin n -> FinMap n a -> Maybe aparameterized-utils Data.Parameterized.FinMap.Unsafe O(min(n,W)). Fetch the value at the given key in the map.
lookup :: (Ord k, Hashable k, Ord p) => k -> HashPSQ k p v -> Maybe (p, v)psqueues Data.HashPSQ O(min(n,W)) The priority and value of a given key, or Nothing if the key is not bound.