|
Attempts to cast an object.
Stores the cast value in Ok if successful, otherwise stores the exception in Error
-
o
:
obj
-
Returns:
Result<'a, exn>
|
|
-
c
:
Result<'a, 'b>
-
f1
:
Action<'a>
-
f2
:
Action<'b>
|
|
-
c
:
Result<'a, 'b>
-
f1
:
Func<'a, 'c>
-
f2
:
Func<'b, 'c>
-
Returns:
'c
|
|
-
b
:
'T2
-
Returns:
Result<'T1, 'T2>
|
|
-
a
:
'T1
-
Returns:
Result<'T1, 'T2>
|
|
-
o
:
Result<'a, 'b>
-
f
:
Func<'a, 'c>
-
Returns:
Result<'c, 'b>
|
|
-
o
:
Result<'a, 'b>
-
f
:
Func<'b, 'c>
-
Returns:
Result<'a, 'c>
|
|
-
o
:
Result<'a, 'b>
-
f
:
Func<'a, Result<'c, 'b>>
-
mapper
:
Func<'a, 'c, 'd>
-
Returns:
Result<'d, 'b>
|
|
-
o
:
Result<'a, 'b>
-
f
:
Func<'a, Result<'c, 'b>>
-
Returns:
Result<'c, 'b>
|
|
-
c
:
Result<'a, 'b> list
-
Returns:
Result<'a list, 'b>
|
|
-
c
:
Result<'a, 'b>
-
Returns:
'a option
|
|
If Result is Ok, return its value.
Otherwise throw ArgumentException.
-
c
:
Result<'a, 'b>
-
Returns:
'a
|