Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Documentation
whileIterateM :: Monad m => (a -> m Bool) -> (a -> m a) -> a -> m a Source
"whileIterateM b f a" will execute action (f a) while (b a) is true and also feed the results back to the next iteration.