OptionalValue Module
Provides various helper functions for using the OptionalValue<T> type from F#
(The functions are similar to those in the standard Option module).
Functions and values
| Function or value |
Description
|
Full Usage:
asOption value
Parameters:
'T opt
Returns: 'T option
Modifiers: inline Type parameters: 'T |
Turns the `OptionalValue
|
Full Usage:
bind f input
Parameters:
'T -> OptionalValue<'R>
input : OptionalValue<'T>
Returns: OptionalValue<'R>
Modifiers: inline Type parameters: 'T, 'R |
If the
|
Full Usage:
defaultArg def optional
Parameters:
'T
optional : 'T opt
Returns: 'T
Modifiers: inline Type parameters: 'T |
Returns the value `def` when the argument is missing, otherwise returns its value
|
Full Usage:
get optional
Parameters:
'T opt
Returns: 'T
Modifiers: inline Type parameters: 'T |
Get the value stored in the specified optional value. If a value is not available, throws an exception. (This is equivalent to the `Value` property)
|
Full Usage:
map f input
Parameters:
'T -> 'R
input : OptionalValue<'T>
Returns: OptionalValue<'R>
Modifiers: inline Type parameters: 'T, 'R |
If the `OptionalValue
|
Full Usage:
map2 f input1 input2
Parameters:
'T1 -> 'T2 -> 'R
input1 : OptionalValue<'T1>
input2 : OptionalValue<'T2>
Returns: OptionalValue<'R>
Modifiers: inline Type parameters: 'T1, 'T2, 'R |
If both of the arguments contain value, apply the specified function to their
values and return `OptionalValue
|
|
|
Full Usage:
ofOption opt
Parameters:
'T option
Returns: 'T opt
Modifiers: inline Type parameters: 'T |
Turns a standard F# `option
|
Full Usage:
ofTuple (b, value)
Parameters:
bool
value : 'T
Returns: 'T opt
Modifiers: inline Type parameters: 'T |
Creates `OptionalValue
|
Active patterns
| Active pattern |
Description
|
|
Deedle