Safe Haskell | None |
---|
- replicateStreamM' :: Monad m => Int -> m a -> Stream m a
- replicateM' :: (Monad m, Vector v a) => Int -> m a -> m (v a)
Documentation
replicateStreamM' :: Monad m => Int -> m a -> Stream m aSource
Yield a Stream
of values obtained by performing the monadic
action the given number of times. Each value yielded by teh monadic
action is evaluated to WHNF.
replicateM' :: (Monad m, Vector v a) => Int -> m a -> m (v a)Source
Execute the monadic action the given number of times and store the results in a vector. Each value yielded by the monadic action is evaluated to WHNF.