package base

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Poly is a convenient shorthand for Polymorphic_compare in the common case that one wants to use a polymorphic comparator directly in an expression, e.g., Poly.equal a b.

Primitives for polymorphic compare.

val (<) : 'a -> 'a -> bool
val (<=) : 'a -> 'a -> bool
val (<>) : 'a -> 'a -> bool
val (=) : 'a -> 'a -> bool
val (>) : 'a -> 'a -> bool
val (>=) : 'a -> 'a -> bool
val ascending : 'a -> 'a -> int
val compare : 'a -> 'a -> int
val equal : 'a -> 'a -> bool
val descending : 'a -> 'a -> int
val max : 'a -> 'a -> 'a
val min : 'a -> 'a -> 'a
OCaml

Innovation. Community. Security.