package base

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.15.2.tar.gz
md5=40f8af2c23f65eb9093492381c5555d9
sha512=2032126573fad9a6d575f58e7cc9ad00201b146c4325aa1473a81cf80e652c815243f39f8bd098a555948a5e54ee5dd91877418b515b940d77671ea7de2fd916

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