yjtools-0.9.17: some tools for Monad, List, Tuple and so on.

Data.Function.Tools

curry3 :: ((a, b, c) -> d) -> a -> b -> c -> dSource

uncurry3 :: (a -> b -> c -> d) -> (a, b, c) -> dSource

const2 :: a -> b -> c -> aSource

const3 :: a -> b -> c -> d -> aSource

applyWhen :: Bool -> (a -> a) -> a -> aSource

applyUnless :: Bool -> (a -> a) -> a -> aSource

apply2way :: (a -> b -> c) -> (d -> a) -> (d -> b) -> d -> cSource