jon.recoil.org

Module Natural.Make

Functor to create fresh types isomorphic to the natural numbers

Parameters

Signature

include Ocaml_typing.Natural.S_no_zero
type t
val one : t
val maximum : t
val succ : t -> t
val pred : t -> t option
val compare : t -> t -> int
val equal : t -> t -> bool
val less_than : t -> t -> bool
val less_than_or_equal : t -> t -> bool
val max : t -> t -> t
val plus : t -> t -> t
val pp : Stdlib.Format.formatter -> t -> unit
module Map : Stdlib.Map.S with type key = t
module Set : Stdlib.Set.S with type elt = t
module Tbl : Stdlib.Hashtbl.S with type key = t
val zero : t