package base

  1. Overview
  2. Docs
Full standard library replacement for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

v0.12.2.tar.gz
sha256=0aa8fa8778412c67c38d40e9859bfa5871c4f9c25991f09fea201ae6aaf1d0d9
md5=7150e848a730369a2549d01645fb6c72

doc/base/Base/Poly/index.html

Module Base.Poly

A module containing the ad-hoc polymorphic comparison functions. Useful when you want to use polymorphic compare in some small scope of a file within which polymorphic compare has been hidden

val compare : 'a -> 'a -> int
val ascending : 'a -> 'a -> int

ascending is identical to compare. descending x y = ascending y x. These are intended to be mnemonic when used like List.sort ~compare:ascending and List.sort ~compare:descending, since they cause the list to be sorted in ascending or descending order, respectively.

val descending : 'a -> 'a -> int
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 equal : 'a -> 'a -> bool
val min : 'a -> 'a -> 'a
val max : 'a -> 'a -> 'a
OCaml

Innovation. Community. Security.