FsToolkit.ErrorHandling
Search…
README
Result
Option
ResultOption
map
map2
map3
apply
bind
ignore
Computation Expression
Operators
AsyncResult
TaskResult
JobResult
List
AsyncResultOption
Validation
Test
Powered By
GitBook
map3
Namespace:
FsToolkit.ErrorHandling
Function Signature:
(
'a
->
'b
->
'c
->
'd
)
->
Result
<
'a option
,
'e
>
->
Result
<
'b option
,
'e
>
->
Result
<
'c option
,
'e
>
->
Result
<
'd option
,
'e
>
Example 1
Given the following function:
add
:
int
->
int
->
int
->
int
Then using
ResultOption.map3
, we can do the following:
ResultOption
.
map3 add
(
Ok
(
Some
30
))
(
Ok
(
Some
10
))
(
Ok
(
Some
2
))
// Ok (Some 42)
Previous
map2
Next
apply
Last modified
9mo ago
Copy link