Shift.Int
Integers with addition. Caveats: it does not handle integer overflow.
include S
val dump : Stdlib.Format.formatter -> t -> unit
Ugly printer.
lt x y
checks if x
is strictly less than y
. Note that trichotomy fails for general partial orders.
leq x y
checks if x
is less than or equal to y
. Note that trichotomy fails for general partial orders.
val id : t
id
is the unit.
val is_id : t -> bool
is_id s
checks whether s
is the unit. It is equivalent to equal id s
, but potentially faster.
val of_int : int -> t
Conversion from int
val to_int : t -> int
Conversion to int