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.

  1. mappendFlatBag :: FlatBag a -> FlatBag a -> FlatBag a

    ghc-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.

  2. mapOL :: (a -> b) -> OrdList a -> OrdList b

    ghc-lib-parser GHC.Data.OrdList

    No documentation available.

  3. mapOL' :: (a -> b) -> OrdList a -> OrdList b

    ghc-lib-parser GHC.Data.OrdList

    No documentation available.

  4. mapSmallArray :: (a -> b) -> SmallArray a -> SmallArray b

    ghc-lib-parser GHC.Data.SmallArray

    Map a function over the elements of a SmallArray

  5. mapAccumL_ :: forall m a b c r . Monad m => (c -> a -> m (c, b)) -> c -> Stream m a r -> Stream m b (c, r)

    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.

  6. mapM :: Monad m => (a -> m b) -> Stream m a x -> Stream m b x

    ghc-lib-parser GHC.Data.Stream

    Apply a monadic operation to each element of a Stream, lazily

  7. mapG :: forall (m :: Type -> Type) a b . Functor m => (a -> b) -> GenMap m a -> GenMap m b

    ghc-lib-parser GHC.Data.TrieMap

    No documentation available.

  8. 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")])
    

  9. 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.

  10. 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")])
    

Page 177 of many | Previous | Next