package octez-libs

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

Parameters

module P : COMPARABLE

Signature

val (=) : P.t -> P.t -> bool

x = y iff compare x y = 0

val (<>) : P.t -> P.t -> bool

x <> y iff compare x y <> 0

val (<) : P.t -> P.t -> bool

x < y iff compare x y < 0

val (<=) : P.t -> P.t -> bool

x <= y iff compare x y <= 0

val (>=) : P.t -> P.t -> bool

x >= y iff compare x y >= 0

val (>) : P.t -> P.t -> bool

x > y iff compare x y > 0

val compare : P.t -> P.t -> int

compare an alias for the functor parameter's compare function

val equal : P.t -> P.t -> bool

equal x y iff compare x y = 0

val max : P.t -> P.t -> P.t

max x y is x if x >= y otherwise it is y

val min : P.t -> P.t -> P.t

min x y is x if x <= y otherwise it is y

OCaml

Innovation. Community. Security.