You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/fsharp/language-reference/results.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
---
2
2
title: Results
3
3
description: Learn how to use the F# 'Result' type to help you write error-tolerant code.
4
-
ms.date: 04/24/2017
4
+
ms.date: 08/13/2020
5
5
---
6
6
# Results
7
7
8
-
Starting with F# 4.1, there is a `Result<'T,'TFailure>` type which you can use for writing error-tolerant code which can be composed.
8
+
The `Result<'T,'TFailure>` type lets you write error-tolerant code that can be composed.
9
9
10
10
## Syntax
11
11
@@ -21,7 +21,9 @@ type Result<'T,'TError> =
21
21
22
22
## Remarks
23
23
24
-
Note that the result type is a [struct discriminated union](discriminated-unions.md#struct-discriminated-unions), which is another feature introduced in F# 4.1. Structural equality semantics apply here.
24
+
See the [`Result`](https://fsharp.github.io/fsharp-core-docs/reference/fsharp-core-resultmodule.html) module for the built-in combinators for the `Result`. type.
25
+
26
+
Note that the result type is a [struct discriminated union](discriminated-unions.md#struct-discriminated-unions). Structural equality semantics apply here.
25
27
26
28
The `Result` type is typically used in monadic error-handling, which is often referred to as [Railway-oriented Programming](https://swlaschin.gitbooks.io/fsharpforfunandprofit/content/posts/recipe-part2.html) within the F# community. The following trivial example demonstrates this approach.
0 commit comments