Hoogle Search

Within LTS Haskell 24.26 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. mapM' :: Monad f => (a -> f b) -> [a] -> f [b]

    hledger-lib Hledger.Utils

    Like mapM but uses sequence'.

  2. mapAccumL :: (acc -> x -> (acc, y)) -> acc -> Infinite x -> Infinite y

    infinite-list Data.List.Infinite

    Fold an infinite list from the left and return a list of successive reductions, keeping accumulator in a state:

    mapAccumL f acc0 (x1 :< x2 :< ...) =
    let (acc1, y1) = f acc0 x1 in
    let (acc2, y2) = f acc1 x2 in
    ...
    y1 :< y2 :< ...
    
    If you are looking how to traverse with a state, look no further.

  3. mapAccumL' :: (acc -> x -> (acc, y)) -> acc -> Infinite x -> Infinite y

    infinite-list Data.List.Infinite

    Same as mapAccumL, but strict in accumulator.

  4. mapEither :: (a -> Either b c) -> Infinite a -> (Infinite b, Infinite c)

    infinite-list Data.List.Infinite

    Apply a function to every element of an infinite list and separate Left and Right results. This function isn't productive (e. g., head . fst . mapEither f won't terminate), if no elements of the input list result in Left or Right.

  5. mapMaybe :: (a -> Maybe b) -> Infinite a -> Infinite b

    infinite-list Data.List.Infinite

    Apply a function to every element of an infinite list and collect Just results. This function isn't productive (e. g., head . mapMaybe f won't terminate), if no elements of the input list result in Just.

  6. mapAccumL :: (a -> Char -> (a, Char)) -> a -> JSString -> (a, JSString)

    jsaddle Data.JSString

    O(n) Like a combination of map and foldl'. Applies a function to each element of a JSString, passing an accumulating parameter from left to right, and returns a final JSString. Performs replacement on invalid scalar values.

  7. mapAccumR :: (a -> Char -> (a, Char)) -> a -> JSString -> (a, JSString)

    jsaddle Data.JSString

    The mapAccumR function behaves like a combination of map and a strict foldr; it applies a function to each element of a JSString, passing an accumulating parameter from right to left, and returning a final value of this accumulator together with the new JSString. Performs replacement on invalid scalar values.

  8. mapAccumL :: (a -> Char -> (a, Char)) -> a -> Stream Char -> (a, JSString)

    jsaddle Data.JSString.Internal.Fusion

    O(n) Like a combination of map and foldl'. Applies a function to each element of a Text, passing an accumulating parameter from left to right, and returns a final JSString.

  9. mapEvent :: forall (m :: Type -> Type) e e' value . Monad m => (e -> e') -> ResultT e m value -> ResultT e' m value

    morpheus-graphql-core Data.Morpheus.Internal.Ext

    No documentation available.

  10. mapApplySplit :: Ord a => a -> (c -> c -> c) -> (b -> c) -> (Map a b -> Map a c) -> Map a b -> Map a c

    numeric-prelude MathObj.PartialFraction

    Apply a function on a specific element if it exists, and another function to the rest of the map.

Page 162 of many | Previous | Next