Hoogle Search
Within LTS Haskell 24.28 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
adjustWithKey :: (Key -> a -> a) -> Key -> Word64Map a -> Word64Map aghc-lib-parser GHC.Data.Word64Map.Strict Adjust a value at a specific key. When the key is not a member of the map, the original map is returned.
let f key x = (show key) ++ ":new " ++ x adjustWithKey f 5 (fromList [(5,"a"), (3,"b")]) == fromList [(3, "b"), (5, "5:new a")] adjustWithKey f 7 (fromList [(5,"a"), (3,"b")]) == fromList [(3, "b"), (5, "a")] adjustWithKey f 7 empty == empty
adjust :: (a -> a) -> Key -> Word64Map a -> Word64Map aghc-lib-parser GHC.Data.Word64Map.Strict.Internal Adjust a value at a specific key. When the key is not a member of the map, the original map is returned.
adjust ("new " ++) 5 (fromList [(5,"a"), (3,"b")]) == fromList [(3, "b"), (5, "new a")] adjust ("new " ++) 7 (fromList [(5,"a"), (3,"b")]) == fromList [(3, "b"), (5, "a")] adjust ("new " ++) 7 empty == emptyadjustWithKey :: (Key -> a -> a) -> Key -> Word64Map a -> Word64Map aghc-lib-parser GHC.Data.Word64Map.Strict.Internal Adjust a value at a specific key. When the key is not a member of the map, the original map is returned.
let f key x = (show key) ++ ":new " ++ x adjustWithKey f 5 (fromList [(5,"a"), (3,"b")]) == fromList [(3, "b"), (5, "5:new a")] adjustWithKey f 7 (fromList [(5,"a"), (3,"b")]) == fromList [(3, "b"), (5, "a")] adjustWithKey f 7 empty == empty
alr_justClosedExplicitLetBlock :: PState -> Boolghc-lib-parser GHC.Parser.Lexer No documentation available.
-
ghc-lib-parser GHC.Parser.Lexer.Interface No documentation available.
adjustCtLoc :: Bool -> Bool -> CtLoc -> CtLocghc-lib-parser GHC.Tc.Types.CtLoc No documentation available.
adjustCtLocTyConBinder :: TyConBinder -> CtLoc -> CtLocghc-lib-parser GHC.Tc.Types.CtLoc No documentation available.
adjustDNameEnv :: (a -> a) -> DNameEnv a -> Name -> DNameEnv aghc-lib-parser GHC.Types.Name.Env No documentation available.
adjustUDFM :: Uniquable key => (elt -> elt) -> UniqDFM key elt -> key -> UniqDFM key eltghc-lib-parser GHC.Types.Unique.DFM Apply a function to a particular element
adjustUFM :: Uniquable key => (elt -> elt) -> UniqFM key elt -> key -> UniqFM key eltghc-lib-parser GHC.Types.Unique.FM No documentation available.