File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
src/FsToolkit.ErrorHandling Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -121,25 +121,6 @@ module Option =
121121 |> ofNull
122122 | None -> None
123123
124- /// <summary>
125- /// Returns result of running <paramref name="onSome"/> if it is <c>Some</c>, otherwise returns result of running <paramref name="onNone"/>
126- /// </summary>
127- /// <param name="onNone">The function to run if <paramref name="input"/> is <c>None</c></param>
128- /// <param name="onSome">The function to run if <paramref name="input"/> is <c>Some</c></param>
129- /// <param name="input">The input option.</param>
130- /// <returns>
131- /// The result of running <paramref name="onSome"/> if the input is <c>Some</c>, else returns result of running <paramref name="onNone"/>.
132- /// </returns>
133- [<System.Obsolete( " Call Option.either instead." , true ) >]
134- let inline maybe
135- ( [<InlineIfLambda>] onNone : unit -> 'output )
136- ( [<InlineIfLambda>] onSome : 'a -> 'output )
137- ( input : 'a option )
138- : 'output =
139- match input with
140- | Some x -> onSome x
141- | None -> onNone ()
142-
143124 /// <summary>
144125 /// Returns result of running <paramref name="onSome"/> if it is <c>Some</c>, otherwise returns result of running <paramref name="onNone"/>
145126 /// </summary>
You can’t perform that action at this time.
0 commit comments