Module CCBoolSource

Basic Bool functions

Sourcetype t = bool
Sourceval compare : t -> t -> int

Total ordering on booleans, similar to Pervasives.compare.

Sourceval equal : t -> t -> bool
Sourceval to_int : t -> int

to_int true = 1, to_int false = 0.

  • since 2.7
Sourceval of_int : int -> t

of_int i is the same as i <> 0

  • since 2.7
Sourceval negate : t -> t
  • deprecated use `not` instead
Sourcetype 'a printer = Format.formatter -> 'a -> unit
Sourceval pp : t printer