Module CCBool
Basic Bool functions
val compare : t -> t -> int
compare b1 b2
is the total ordering on booleansb1
andb2
, similar toStdlib
.compare.
val to_int : t -> int
to_int true = 1
,to_int false = 0
.- since
- 2.7
val of_int : int -> t
of_int i
is the same asi <> 0
- since
- 2.7