replicateM

replicateM :: Monad m => Int -> m a -> m [a]
base Control.Monad
replicateM n act performs the action n times, gathering the results.
replicateM :: Monad m => Int -> m a -> m (Seq a)
containers Data.Sequence
replicateM is a sequence counterpart of replicateM. > replicateM n x = sequence (replicate n x)
replicateM_ :: Monad m => Int -> m a -> m ()
base Control.Monad
Like replicateM, but discards the result.