- Ord <in A>
- Ord
- greaterThan <A> (A x, A y)
- greaterOrEq <A> (A x, A y)
- lessThan <A> (A x, A y)
- lessOrEq <A> (A x, A y)
- compare <A> (A x, A y)
- max <OrdA, A> (A x, A y)
- min <OrdA, A> (A x, A y)
- min <OrdA, A> (A x, params A[] tail)
- max <OrdA, A> (A x, params A[] tail)
- Prelude
- greaterThan <ORD, A> (A x, A y)
- greaterOrEq <ORD, A> (A x, A y)
- lessThan <ORD, A> (A x, A y)
- lessOrEq <ORD, A> (A x, A y)
- compare <ORD, A> (A x, A y)
- compare <ORD, A> (Option<A> x, Option<A> y)
- compare <ORDA, ORDB, A, B> (Either<A, B> x, Either<A, B> y)
- compare <ORDA, ORDB, A, B> (Validation<A, B> x, Validation<A, B> y)
- compare <ORD, A> (A[] x, A[] y)
- compare <ORD, A> (Lst<A> x, Lst<A> y)
- compare <ORD, L, R> (Either<L, R> x, Either<L, R> y)
- OrdComparer <OrdA, A>
method bool greaterThan <A> (A x, A y) Source #
Returns true if x is greater than y
param | x | The first item to compare |
param | y | The second item to compare |
returns | True if x is greater than y |
method bool greaterOrEq <A> (A x, A y) Source #
Returns true if x is greater than or equal to y
param | x | The first item to compare |
param | y | The second item to compare |
returns | True if x is greater than or equal to y |
method bool lessThan <A> (A x, A y) Source #
Returns true if x is less than y
param | x | The first item to compare |
param | y | The second item to compare |
returns | True if x is less than y |
method bool lessOrEq <A> (A x, A y) Source #
Returns true if x is less than or equal to y
param | x | The first item to compare |
param | y | The second item to compare |
returns | True if x is less than or equal to y |
method int compare <A> (A x, A y) Source #
Compare one item to another to ascertain ordering
param | x | The first item to compare |
param | y | The second item to compare |
returns | 0 if x is equal to y -1 if x greater than y 1 if x less than y |
method A max <OrdA, A> (A x, A y) Source #
Find the maximum value between any two values
param | x | First value |
param | y | Second value |
returns | When ordering the two values in ascending order, this is the last of those |
method A min <OrdA, A> (A x, A y) Source #
Find the minimum value between any two values
param | x | First value |
param | y | Second value |
returns | When ordering the two values in ascending order, this is the first of those |
method bool greaterThan <ORD, A> (A x, A y) Source #
Returns true if x is greater than y
param | x | The first item to compare |
param | y | The second item to compare |
returns | True if x is greater than y |
method bool greaterOrEq <ORD, A> (A x, A y) Source #
Returns true if x is greater than or equal to y
param | x | The first item to compare |
param | y | The second item to compare |
returns | True if x is greater than or equal to y |
method bool lessThan <ORD, A> (A x, A y) Source #
Returns true if x is less than y
param | x | The first item to compare |
param | y | The second item to compare |
returns | True if x is less than y |
method bool lessOrEq <ORD, A> (A x, A y) Source #
Returns true if x is less than or equal to y
param | x | The first item to compare |
param | y | The second item to compare |
returns | True if x is less than or equal to y |
method int compare <ORD, A> (A x, A y) Source #
Compare one item to another to ascertain ordering
param | x | The first item to compare |
param | y | The second item to compare |
returns | 0 if x is equal to y -1 if x greater than y 1 if x less than y |
method int compare <ORD, A> (Option<A> x, Option<A> y) Source #
Compare one item to another to ascertain ordering
param | x | The first item to compare |
param | y | The second item to compare |
returns | 0 if x is equal to y -1 if x greater than y 1 if x less than y |
method int compare <ORDA, ORDB, A, B> (Either<A, B> x, Either<A, B> y) Source #
Compare one item to another to ascertain ordering
param | x | The first item to compare |
param | y | The second item to compare |
returns | 0 if x is equal to y -1 if x greater than y 1 if x less than y |
method int compare <ORDA, ORDB, A, B> (Validation<A, B> x, Validation<A, B> y) Source #
Compare one item to another to ascertain ordering
param | x | The first item to compare |
param | y | The second item to compare |
returns | 0 if x is equal to y -1 if x greater than y 1 if x less than y |
method int compare <ORD, A> (A[] x, A[] y) Source #
Compare one item to another to ascertain ordering
param | x | The first item to compare |
param | y | The second item to compare |
returns | 0 if x is equal to y -1 if x greater than y 1 if x less than y |
class OrdComparer <OrdA, A> Source #
Hosts a standard .NET IComparer
from an Ord<A>
instance (in the static Default
property)
field IComparer<A> Default = new OrdComparer<OrdA, A>() Source #