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 :: forall a (m :: Type -> Type) b . (Eq a, Monad m) => a -> Fold m (a, b) (Maybe b)streamly-core Streamly.Internal.Data.Fold In a stream of (key-value) pairs (a, b), return the value b of the first pair where the key equals the given value a. Definition:
>>> lookup x = fmap snd <$> Fold.find ((== x) . fst)
lookup :: (Monad m, Eq a) => a -> Stream m (a, b) -> m (Maybe b)streamly-core Streamly.Internal.Data.Stream No documentation available.
lookup :: (Monad m, Eq a) => a -> StreamK m (a, b) -> m (Maybe b)streamly-core Streamly.Internal.Data.StreamK No documentation available.
lookup :: MonadIO m => ThreadStorageMap a -> m (Maybe a)thread-utils-context Control.Concurrent.Thread.Storage Retrieve a value if it exists for the current thread
-
what4 What4.Expr.ArrayUpdateMap No documentation available.
lookup :: (Ord k, Semigroup v) => k -> AnnotatedMap k v a -> Maybe (v, a)what4 What4.Utils.AnnotatedMap No documentation available.
lookup :: Exp -> MemberId -> ExpAgda Agda.Compiler.JS.Substitution No documentation available.
lookup :: Eq a => a -> [(a, b)] -> Maybe bAgda Agda.Utils.AssocList 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 :: Ord k => k -> BiMap k v -> Maybe vAgda Agda.Utils.BiMap Lookup. O(log n).
lookup :: Ord n => n -> n -> Graph n e -> Maybe eAgda Agda.Utils.Graph.AdjacencyMap.Unidirectional If there is an edge from s to t, then lookup s t g is Just e, where e is the edge's label. O(log n).