map
Namespace: FsToolkit.ErrorHandling
map
applies a transformation to the value inside a Result
if it represents a successful result (Ok
). It allows you to perform a computation on the value while preserving the success/error status of the original Result
. If the original Result
is an Error
, map
does nothing and returns the same Error
unchanged.
Function Signature
Examples
Take the following functions for example
Example 1
Example 2
Last updated