package fmlib

  1. Overview
  2. Docs

Interface for a sortable type. A type is sortable, if it has a comparison function.

type t

Type of elements which have a linear order.

val compare : t -> t -> int

compare a b Compare the values a and b, both of type t. Return values:

  • -1: a strictly smaller than b
  • 0: a and b are equal
  • +1: a is strictly greater than b
OCaml

Innovation. Community. Security.