package base

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

Install

Dune Dependency

Authors

Maintainers

Sources

v0.16.4.tar.gz
md5=1716b735b93c9d068dd9790bb40d6562
sha512=ab1bf389889dda97235a76782858521256ab65290831c1234781bc4b3ec8186680616f64b922b0c9dfd11b2ed46e0be9e9b8778904a97ef5f849132b925fd210

doc/base/Base/Poly/index.html

Module Base.PolySource

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

Sourceval compare : 'a -> 'a -> int
Sourceval 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.

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

Innovation. Community. Security.