Booleans
type t = bool =| false| trueThe type of booleans (truth values).
The constructors
falseandtrueare included here so that they have paths, but they are not intended to be used in user-defined data types.
val (&&) : bool -> bool -> boole0 && e1is the lazy boolean conjunction of expressionse0ande1. Ife0evaluates tofalse,e1is not evaluated. Right-associative operator at precedence level 3/11.
val (||) : bool -> bool -> boole0 || e1is the lazy boolean disjunction of expressionse0ande1. Ife0evaluates totrue,e1is not evaluated. Right-associative operator at precedence level 2/11.
Predicates and comparisons
val compare : bool -> bool -> intcompare b0 b1is a total order on boolean values.falseis smaller thantrue.