ofValueOption

Namespace: FsToolkit.ErrorHandling

Transforms a 'T voption value to 'T Option.

Function Signature

'T voption -> 'T Option

Examples

Example 1

let x : int voption = Some 1
let opt = Option.ofValueOption x
// Some 1

Example 2

let x : int voption = None
let opt = Option.ofValueOption x
// None

Last updated