Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
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.
mapM :: (Traversable t, Monad m) => (a -> m b) -> t a -> m (t b)numeric-prelude NumericPrelude Map each element of a structure to a monadic action, evaluate these actions from left to right, and collect the results. For a version that ignores the results see mapM_.
Examples
mapM is literally a traverse with a type signature restricted to Monad. Its implementation may be more efficient due to additional power of Monad.mapM_ :: (Foldable t, Monad m) => (a -> m b) -> t a -> m ()numeric-prelude NumericPrelude Map each element of a structure to a monadic action, evaluate these actions from left to right, and ignore the results. For a version that doesn't ignore the results see mapM. mapM_ is just like traverse_, but specialised to monadic actions.
mapM :: (Traversable t, Monad m) => (a -> m b) -> t a -> m (t b)numeric-prelude NumericPrelude.Base Map each element of a structure to a monadic action, evaluate these actions from left to right, and collect the results. For a version that ignores the results see mapM_.
Examples
mapM is literally a traverse with a type signature restricted to Monad. Its implementation may be more efficient due to additional power of Monad.mapM_ :: (Foldable t, Monad m) => (a -> m b) -> t a -> m ()numeric-prelude NumericPrelude.Base Map each element of a structure to a monadic action, evaluate these actions from left to right, and ignore the results. For a version that doesn't ignore the results see mapM. mapM_ is just like traverse_, but specialised to monadic actions.
mapM :: (Traversable t, Monad m) => (a -> m b) -> t a -> m (t b)numhask NumHask.Prelude Map each element of a structure to a monadic action, evaluate these actions from left to right, and collect the results. For a version that ignores the results see mapM_.
Examples
mapM is literally a traverse with a type signature restricted to Monad. Its implementation may be more efficient due to additional power of Monad.