package containers

  1. Overview
  2. Docs
A modular, clean and powerful extension of the OCaml standard library

Install

Dune Dependency

Authors

Maintainers

Sources

v3.12.tar.gz
md5=d74226924b65697a8558eb34a6074417
sha512=d5094e362f9ad7fe91aa060ef5c9805812cf888b326f0f0070f929205a83169a64c78dfce58a2ec0da77555b21c69a1f287fb38da9867cd6b16507f6c20fa666

doc/containers/CCBool/index.html

Module CCBoolSource

Basic Bool functions

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

compare b1 b2 is the total ordering on booleans b1 and b2, similar to Stdlib.compare.

Sourceval equal : t -> t -> bool

equal b1 b2 is true if b1 and b2 are the same.

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
Sourcetype 'a printer = Format.formatter -> 'a -> unit
Sourceval pp : t printer
OCaml

Innovation. Community. Security.