Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
lookup :: (Ord a, Ord b, MonadThrow m) => a -> Bimap a b -> m bbimap Data.Bimap O(log n). Lookup a left key in the bimap, returning the associated right key. This function will return the result in the monad, or fail if the value isn't in the bimap. Note that the signature differs slightly from Data.Map's lookup. This one is more general - it functions the same way as the "original" if m is cast (or inferred) to Maybe. Version: 0.2
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.
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.