Option Module
Chooses between two option values with a comparison, giving the minimum or the maximum. When only one option holds a value, the result is this option.
Nested modules
| Modules | Description |
|
Holds the Unquote tests of the Option functions. |
Functions and values
| Function or value |
Description
|
Full Usage:
Option.choose cp opt1 opt2
Parameters:
'a -> 'a -> bool
opt1 : 'a option
opt2 : 'a option
Returns: 'a option
Type parameters: 'a |
Choose opt1 or opt2 based on a predicate function cp
|
Full Usage:
Option.max opt1 opt2
Parameters:
'a option
opt2 : 'a option
Returns: 'a option
Type parameters: 'a (requires comparison) |
choose the maximum of two options
|
Full Usage:
Option.min opt1 opt2
Parameters:
'a option
opt2 : 'a option
Returns: 'a option
Type parameters: 'a (requires comparison) |
Choose the minimum of two options
|
Full Usage:
Option.none arg1
Parameters:
'a
Returns: 'b option
Type parameters: 'a, 'b |
Create a None
|
GenPRES