Add applyWhen to Data.Function per CLC prop 71
This PR implements a CLC proposal.
It adds the function applyWhen :: Bool -> (a -> a) -> a -> a
to Data.Function
in base
.
I have currently not added a test case, I will do so soon.
This PR implements a CLC proposal.
It adds the function applyWhen :: Bool -> (a -> a) -> a -> a
to Data.Function
in base
.
I have currently not added a test case, I will do so soon.