package orsetto

  1. Overview
  2. Docs
A library of assorted structured data interchange languages

Install

Dune Dependency

Authors

Maintainers

Sources

r1.1.3.tar.gz
sha512=9b654edb663ae697563f150824047052f3b1bf760398f24bce6350553f031f73c46b6337239a1acd871e61238597ea92046809e3358290ff14d6ba671b449085

doc/orsetto.cf/Cf_annot/Textual/Serial/index.html

Module Textual.Serial

The signature of a serial number type, c.f. RFC 1982.

Serial numbers are not technically totally ordered. Some comparisons of serial numbers at excessively large distances can raise Failure.

include Cf_relations.Std
type t

An abstract type.

val compare : t -> t -> int

Use compare a b to compare a and b, returning 0 if the two values have equal ordering, 1 if a precedes b and -1 if a succeeds b.

val equal : t -> t -> bool

Use equal a b to compare a and b, returning true if the two values are equivalent, otherwise false.

val zero : t

The disintiguished initial serial number.

val succ : t -> t

Annotation systems use succ n to make the successor of n.

OCaml

Innovation. Community. Security.