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 e675410 commit a164e23Copy full SHA for a164e23
samples/snippets/fsharp/tour.fs
@@ -745,7 +745,7 @@ module PatternMatching =
745
746
/// You can also use the shorthand function construct for pattern matching,
747
/// which is useful when you're writing functions which make use of Partial Application.
748
- let private parseHelper f = f >> function
+ let private parseHelper (f: string -> bool * 'T) = f >> function
749
| (true, item) -> Some item
750
| (false, _) -> None
751
0 commit comments