yjtools-0.9.18: some tools for Monad, List, Tuple and so on.
Safe HaskellSafe-Inferred
LanguageHaskell98

Data.Function.Tools

Documentation

const2 :: a -> b -> c -> a Source #

const3 :: a -> b -> c -> d -> a Source #

applyWhen :: Bool -> (a -> a) -> a -> a Source #

applyUnless :: Bool -> (a -> a) -> a -> a Source #

apply2way :: (a -> b -> c) -> (d -> a) -> (d -> b) -> d -> c Source #