Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Documentation
ifJust :: Monad m => Maybe a -> (a -> m ()) -> m () Source #
if a is just than apply f, otherwise 'return ()'
applyIf :: (a -> Bool) -> (a -> a) -> a -> a Source #
apply f on a if p is true, otherwise just return a