either Functions
Consider the following code for the examples below
Result.either
Namespace: FsToolkit.ErrorHandling
If the result is ok, perform a function on the ok value which returns a value. If the result is an error, perform a function on the error value which returns a value.
Function Signature
Examples
Example 1
Result.eitherMap
Namespace: FsToolkit.ErrorHandling
If the result is ok, perform a function on the ok value to map it to another result type. If the result is an error, perform a function on the error value to map it to another result type.
Function Signature
Examples
Example 1
Last updated