Copyright © Inria 2023-2024
Integers agumented with -\infty
and +\infty
(for testing purposes only). Integer over- and under-flows are not supported.
type t =
| MInf
| PInf
| Int of int
val compare : t -> t -> int
val equal : t -> t -> bool
val hash_fold : Base.Hash.state -> t -> Base.Hash.state
"Lesser or equal" test on integers
val pp : Stdlib.Format.formatter -> t -> unit
Computes the opposite of an integer
Multiplication of integers. Always returns 0
if one of the arguments is 0
.
Predecessor of an integer. The predecessors of PInf
and MInf
are themselves.
Successor of an integer. The successors of PInf
and MInf
are themselves.
val minimum : t -> t -> t
val maximum : t -> t -> t