package orsetto
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=151ca6df499bd3de7aa89a4e1627411fbee24c4dea6e0e71ce21f06f181ee654
md5=00393728b481c2bf15919a8202732335
doc/orsetto.cf/Cf_relations/index.html
Module Cf_relations
Utility relations.
Overview
This module defines convenient signatures for the useful equality and total ordering relations on a monomorphic type.
module type Order = sig ... endModule type defining a type t and a corresponding total ordering function, of the sort generated by Ppx_deriving, which returns the same value as the standard Pervasives.compare function.
Use min (module M: Order) a b to select the minimum of a and b according to the total order M.
Use max (module M: Order) a b to select the maximum of a and b according to the total order M.
module type Equal = sig ... endModule type defining a type t and a corresponding equality relation function, of the sort generated by Ppx_deriving, which returns the same value as the standard Pervasives.(=) operator.
module type Std = sig ... endModule type definining a type t and the corresponding equality and total ordering relation functions, of the sort generated by Ppx_deriving, which return the same value as the standard Pervasives.(=) and Pervasives.compare functions