data-extra-2.5.2: Extra utilities for working on Data.* types.
Data.Bool.Extra
Description
Extra functions for dealing with Bool.
Synopsis
bool :: a -> a -> Bool -> aSource
bool false true p = if p then true else false
cond :: (a -> b) -> (a -> b) -> (a -> Bool) -> a -> bSource
cond false true p v = if p v then true v else false v