forM_ -package:massiv
base Control.Monad Data.Foldable,
base-compat Control.Monad.Compat,
protolude Protolude,
relude Relude.Foldable.Reexport,
base-prelude BasePrelude,
ihaskell IHaskellPrelude,
numhask NumHask.Prelude,
base-compat-batteries Control.Monad.Compat,
ghc-internal GHC.Internal.Control.Monad GHC.Internal.Data.Foldable,
rebase Rebase.Prelude,
persistent-test Init,
massiv-test Test.Massiv.Utils forM_ is
mapM_ with its arguments flipped. For a version
that doesn't ignore the results see
forM.
forM_ is just like
for_, but specialised to monadic
actions.
form element or form attribute
forM_ is
mapM_ with its arguments flipped. For a version
that doesn't ignore the results see
forM.
As of base 4.8.0.0,
forM_ is just
for_, specialized to
Monad.
O(n) Apply the monadic action to all elements of a vector and
ignore the results. Equivalent to
flip mapM_.
O(n) Apply the monadic action to all elements of a vector and
ignore the results. Equivalent to
flip mapM_.
O(n) Apply the monadic action to all elements of a vector and
ignore the results. Equivalent to
flip mapM_.
O(n) Apply the monadic action to all elements of a vector and
ignore the results. Equivalent to
flip mapM_.
forM_ is
mapM_ with its arguments flipped. For a version
that doesn't ignore its results, see
forM.
Like
forM_, but applying the function to the individual list
items in parallel.
Constrained to
Container version of
forM_.
>>> forM_ [True, False] print
True
False
O(n) Apply the monadic action to all elements of a vector and
ignore the results. Equivalent to
flip mapM_.
O(n) Apply the monadic action to all elements of a vector and
ignore the results. Equivalent to
flip mapM_.
O(n) Apply the monadic action to all elements of a vector and
ignore the results. Equivalent to
flip mapM_.
O(n) Apply the monadic action to all elements of a vector and
ignore the results. Equivalent to
flip mapM_.
O(n) Apply the monadic action to all elements of a vector and
ignore the results. Equivalent to
flip mapM_.
forM_ is
mapM_ with its arguments flipped. For a version
that doesn't ignore the results see
forM.
Same as
mapM_ with arguments flipped
forM_ :: forall t k l f a b uk ul . (Foldable t k l, Monoidal f l l, Monoidal f k k, Function l, Arrow k (->), Arrow l (->), ul ~ UnitObject l, uk ~ UnitObject k, uk ~ ul, ObjectPair l ul ul, ObjectPair l (f ul) (f ul), ObjectPair l (f ul) (t a), ObjectPair l ul (t a), ObjectPair l (t a) ul, ObjectPair l (f ul) a, ObjectPair k b (f b), ObjectPair k b ul, ObjectPair k uk uk, ObjectPair k (f uk) a, ObjectPair k (f uk) (f uk)) => t a -> (a `k` f b) -> f uk O(n) Apply the monadic action to all elements of a non-empty
vector and ignore the results.
Equivalent to
flip mapM_.