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.
mapM' :: Monad f => (a -> f b) -> [a] -> f [b]hledger-lib Hledger.Utils Like mapM but uses sequence'.
mapAccumL :: (acc -> x -> (acc, y)) -> acc -> Infinite x -> Infinite yinfinite-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.mapAccumL' :: (acc -> x -> (acc, y)) -> acc -> Infinite x -> Infinite yinfinite-list Data.List.Infinite Same as mapAccumL, but strict in accumulator.
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.
mapMaybe :: (a -> Maybe b) -> Infinite a -> Infinite binfinite-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.
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.
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.
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.
-
morpheus-graphql-core Data.Morpheus.Internal.Ext No documentation available.
-
numeric-prelude MathObj.PartialFraction Apply a function on a specific element if it exists, and another function to the rest of the map.