Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
foundation Foundation.Collection Map each element of the collection to an action, evaluate these actions from left to right, and collect the results. For a version that ignores the results see mapM_.
mapM :: (Context a, Context b, Monad m) => (a -> m b) -> Matrix a -> m (Matrix b)matrices Data.Matrix No documentation available.
-
matrices Data.Matrix.Generic No documentation available.
mapM :: (Context a, Context b, Monad m) => (a -> m b) -> Matrix a -> m (Matrix b)matrices Data.Matrix.Storable No documentation available.
mapM :: (Context a, Context b, Monad m) => (a -> m b) -> Matrix a -> m (Matrix b)matrices Data.Matrix.Unboxed No documentation available.
mapM :: (Traversable t, Monad m) => (a -> m b) -> t a -> m (t b)prelude-compat Prelude2010 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 :: Monad m => (a -> m b) -> Vector a -> m (Vector b)rebase Rebase.Data.Vector No documentation available.
mapM :: Monad m => (a -> m b) -> Stream m a -> Stream m brebase Rebase.Data.Vector.Fusion.Stream.Monadic Map a monadic function over a Stream
mapM :: (Monad m, Vector v a, Vector v b) => (a -> m b) -> v a -> m (v b)rebase Rebase.Data.Vector.Generic No documentation available.
mapM :: (Monad m, Prim a, Prim b) => (a -> m b) -> Vector a -> m (Vector b)rebase Rebase.Data.Vector.Primitive No documentation available.