package octez-libs

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

Module Compare.MakeSource

Parameters

module P : COMPARABLE

Signature

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

x = y iff compare x y = 0

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

x <> y iff compare x y <> 0

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

x < y iff compare x y < 0

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

x <= y iff compare x y <= 0

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

x >= y iff compare x y >= 0

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

x > y iff compare x y > 0

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

compare an alias for the functor parameter's compare function

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

equal x y iff compare x y = 0

Sourceval max : P.t -> P.t -> P.t

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

Sourceval min : P.t -> P.t -> P.t

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

OCaml

Innovation. Community. Security.