Hoogle Search
Within LTS Haskell 24.27 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mappendFlatBag :: FlatBag a -> FlatBag a -> FlatBag aghc-lib-parser GHC.Data.FlatBag Combine two FlatBags. The new FlatBag contains all elements from both FlatBags. If one of the FlatBags is empty, the old FlatBag is reused.
mapOL :: (a -> b) -> OrdList a -> OrdList bghc-lib-parser GHC.Data.OrdList No documentation available.
mapOL' :: (a -> b) -> OrdList a -> OrdList bghc-lib-parser GHC.Data.OrdList No documentation available.
mapSmallArray :: (a -> b) -> SmallArray a -> SmallArray bghc-lib-parser GHC.Data.SmallArray Map a function over the elements of a SmallArray
-
ghc-lib-parser GHC.Data.Stream Note this is not very efficient because it traverses the whole stream before rebuilding it, avoid using it if you can. mapAccumL used to implemented but it wasn't used anywhere in the compiler and has similar efficiency problems.
mapM :: Monad m => (a -> m b) -> Stream m a x -> Stream m b xghc-lib-parser GHC.Data.Stream Apply a monadic operation to each element of a Stream, lazily
mapG :: forall (m :: Type -> Type) a b . Functor m => (a -> b) -> GenMap m a -> GenMap m bghc-lib-parser GHC.Data.TrieMap No documentation available.
mapAccum :: (a -> b -> (a, c)) -> a -> Word64Map b -> (a, Word64Map c)ghc-lib-parser GHC.Data.Word64Map.Internal The function mapAccum threads an accumulating argument through the map in ascending order of keys.
let f a b = (a ++ b, b ++ "X") mapAccum f "Everything: " (fromList [(5,"a"), (3,"b")]) == ("Everything: ba", fromList [(3, "bX"), (5, "aX")])mapAccumRWithKey :: (a -> Key -> b -> (a, c)) -> a -> Word64Map b -> (a, Word64Map c)ghc-lib-parser GHC.Data.Word64Map.Internal The function mapAccumRWithKey threads an accumulating argument through the map in descending order of keys.
mapAccumWithKey :: (a -> Key -> b -> (a, c)) -> a -> Word64Map b -> (a, Word64Map c)ghc-lib-parser GHC.Data.Word64Map.Internal The function mapAccumWithKey threads an accumulating argument through the map in ascending order of keys.
let f a k b = (a ++ " " ++ (show k) ++ "-" ++ b, b ++ "X") mapAccumWithKey f "Everything:" (fromList [(5,"a"), (3,"b")]) == ("Everything: 3-b 5-a", fromList [(3, "bX"), (5, "aX")])