Hoogle Search
Within LTS Haskell 24.35 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
lookup :: Key k => k -> Tree k v -> Maybe vhaskey-btree Data.BTree.Pure Lookup a value in the tree.
lookup :: Eq a => a -> [(a, b)] -> Maybe blistsafe Data.List.Safe 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 :: Interface (m :: Type -> Type) -> Addr -> m (Maybe Addr)network-house Net.ARP_Protocol No documentation available.
-
pred-set Data.PredSet.Mutable No documentation available.
lookup :: forall s k a . Hashable k => k -> HashMap s k a -> Maybe (Key s k, a)refined-containers Data.HashMap.Refined If the key is in the map, return the proof of this, and the associated value; otherwise return Nothing.
lookup :: forall s k a . Hashable k => k -> HashMap s k a -> Maybe (Key s k, a)refined-containers Data.HashMap.Strict.Refined If the key is in the map, return the proof of this, and the associated value; otherwise return Nothing.
lookup :: Int -> IntMap s a -> Maybe (Key s, a)refined-containers Data.IntMap.Refined If the key is in the map, return the proof of this, and the associated value; otherwise return Nothing.
lookup :: Int -> IntMap s a -> Maybe (Key s, a)refined-containers Data.IntMap.Strict.Refined If the key is in the map, return the proof of this, and the associated value; otherwise return Nothing.
lookup :: forall s k a . Ord k => k -> Map s k a -> Maybe (Key s k, a)refined-containers Data.Map.Refined If the key is in the map, return the proof of this, and the associated value; otherwise return Nothing.
lookup :: forall s k a . Ord k => k -> Map s k a -> Maybe (Key s k, a)refined-containers Data.Map.Strict.Refined If the key is in the map, return the proof of this, and the associated value; otherwise return Nothing.