We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1ebe74 commit 1aa0154Copy full SHA for 1aa0154
src/FSharpPlus/Extensions/ValueOption.fs
@@ -71,7 +71,14 @@ module ValueOption =
71
| true, x -> ValueSome x
72
| false, _ -> ValueNone
73
74
- let toOption x =
75
- match x with
+ /// <summary>Converts a ValueOption to an Option.</summary>
+ let toOption (source: ValueOption<'T>) =
76
+ match source with
77
| ValueSome x -> Some x
78
| ValueNone -> None
79
+
80
+ /// <summary>Converts an Option to a ValueOption.</summary>
81
+ let ofOption (source: option<'T>) =
82
83
+ | Some x -> ValueSome x
84
+ | None -> ValueNone
0 commit comments