-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Recurse while a predicate is satisfied
--   
--   Recurse while a predicate is satisfied
@package almost-fix
@version 0.0.2

module Data.Function.AlmostFix

-- | Applies the predicate to the input: <tt>almostFix (&lt; 5) (+1) 0 =
--   4</tt>
almostFix :: (a -> Bool) -> (a -> a) -> a -> a

-- | Use a monadic predicate for the control flow.
almostFixM :: Monad m => m Bool -> (a -> m a) -> a -> m a
