Namespace: FsToolkit.ErrorHandling
Transforms a Choice<'T, 'Error> value to Result<'T option, 'Error>.
Choice<'T, 'Error> -> Result<'T option, 'Error>let result = ResultOption.ofChoice (Choice1Of2 42)
// Ok (Some 42)let result = ResultOption.ofChoice (Choice2Of2 "error")
// Error "error"