Skip to content

Commit 594327a

Browse files
committed
+ ValueOption.toOption
1 parent 26d5a2f commit 594327a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/FSharpPlus/Extensions/ValueOption.fs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,8 @@ module ValueOption =
7070
match pair with
7171
| true, x -> ValueSome x
7272
| false, _ -> ValueNone
73+
74+
let toOption x =
75+
match x with
76+
| ValueSome x -> Some x
77+
| ValueNone -> None

0 commit comments

Comments
 (0)