Option
Namespace: FSharp.Interop.NullOptAble
Extended functions added to Option
Functions and values
Function or value | Description |
ofObjWhen predicate value
Signature: predicate:('a -> bool) -> value:'a -> 'a option
Type parameters: 'a
|
Description
ofObj only when predicate returns true
Parameters
predicate - parameter of type 'a -> bool
value - parameter of type 'a
Output Type
* 'a option
CompiledName: OfObjWhen
|
ofObjWhenNot predicate value
Signature: predicate:('a -> bool) -> value:'a -> 'a option
Type parameters: 'a
|
Description
ofObj only when predicate returns false
Parameters
predicate - parameter of type 'a -> bool
value - parameter of type 'a
Output Type
* 'a option
CompiledName: OfObjWhenNot
|
ofTryTuple value
Signature: value:(bool * 'a) -> 'a option
Type parameters: 'a
|
Description
Convert a tuple result of a try method to an option type.
Parameters
value - parameter of type bool * 'a
CompiledName: OfTryTuple
|