package ocaml-base-compiler

Part of the compiler
  1. Overview
  2. Docs
Official release 4.14.5

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ocaml_4.14.5.tar.gz
sha256=608c30e5b97fc4568741db8e5e674a5a081ef08a3c4d17172deb1dc6c8825037

doc/ocamlcommon/Identifiable/module-type-Set/T/index.html

Module Set.T

type t

The type of the set elements.

val compare : t -> t -> int

A total ordering function over the set elements. This is a two-argument function f such that f e1 e2 is zero if the elements e1 and e2 are equal, f e1 e2 is strictly negative if e1 is smaller than e2, and f e1 e2 is strictly positive if e1 is greater than e2. Example: a suitable ordering function is the generic structural comparison function Stdlib.compare.