CCBoolBasic Bool functions
compare b1 b2 is the total ordering on booleans b1 and b2, similar to Stdlib.compare.
val if_then : (unit -> 'a) -> t -> 'a optionif_then f x is Some (f ()) if x is true and None otherwise.
val if_then_else : (unit -> 'a) -> (unit -> 'a) -> t -> 'aif_then_else f g x is f () if x is true and g () otherwise.
val to_int : t -> intto_int true = 1, to_int false = 0.
val of_int : int -> tof_int i is the same as i <> 0