Module Natural.Make_no_zeroSource

Functor to create fresh types isomorphic to the natural numbers without zero

Parameters

Signature

Sourcetype t
Sourceval one : t
Sourceval maximum : t
Sourceval succ : t -> t
Sourceval pred : t -> t option
Sourceval compare : t -> t -> int
Sourceval equal : t -> t -> bool
Sourceval less_than : t -> t -> bool
Sourceval less_than_or_equal : t -> t -> bool
Sourceval max : t -> t -> t
Sourceval plus : t -> t -> t
Sourceval pp : Format.formatter -> t -> unit
Sourcemodule Map : Map.S with type key = t
Sourcemodule Set : Set.S with type elt = t
Sourcemodule Tbl : Hashtbl.S with type key = t
Sourcemodule Array : Array with type index = t