NonStructuralComparison Module
A module of comparison and equality operators that are statically resolved, but which are not fully generic and do not make structural comparison. Opening this module may make code that relies on structural or generic comparison no longer compile.
Functions and values
Function or value |
Description
|
Compares the two values for less-than
|
|
Compares the two values for less-than-or-equal
|
|
Compares the two values for inequality
|
|
Compares the two values for equality
|
|
Compares the two values for greater-than
|
|
Compares the two values for greater-than-or-equal
|
|
Full Usage:
compare e1 e2
Parameters:
^T
-
The first value.
e2 : ^T
-
The second value.
Returns: int
The result of the comparison.
Modifiers: inline Type parameters: ^T |
Compares the two values
|
Full Usage:
hash value
Parameters:
'T
-
The value.
Returns: int
The hash code.
Modifiers: inline Type parameters: 'T |
|
Full Usage:
max e1 e2
Parameters:
^T
-
The first value.
e2 : ^T
-
The second value.
Returns: ^T
The maximum value.
Modifiers: inline Type parameters: ^T |
Maximum of the two values
|
Full Usage:
min e1 e2
Parameters:
^T
-
The first value.
e2 : ^T
-
The second value.
Returns: ^T
The minimum value.
Modifiers: inline Type parameters: ^T |
Minimum of the two values
|