From 6bd4cffb7d5bbee8a9b984d53e4dd38f4a0439a4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 3 Oct 2025 14:41:05 +0000 Subject: [PATCH 1/3] Initial plan From 17e51fb8fd0773d70cc7ef61475cc57037bbc592 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 3 Oct 2025 14:46:32 +0000 Subject: [PATCH 2/3] Add explanation of tuple deconstruction in tour.md Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com> --- docs/fsharp/tour.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/fsharp/tour.md b/docs/fsharp/tour.md index a831398301397..730df02f472de 100644 --- a/docs/fsharp/tour.md +++ b/docs/fsharp/tour.md @@ -49,6 +49,8 @@ You can also create `struct` tuples. These also interoperate fully with C#7/Vis [!code-fsharp[Tuples](~/samples/snippets/fsharp/tour.fs#L205-L218)] +The sample demonstrates using pattern matching to deconstruct tuples in function parameters, such as `(struct(a, b))`, which extracts the individual elements. For more information about pattern matching and deconstructing tuples, see [Tuples](language-reference/tuples.md). + It's important to note that because `struct` tuples are value types, they cannot be implicitly converted to reference tuples, or vice versa. You must explicitly convert between a reference and struct tuple. ## Pipelines From cafa43ec5fcfa5f0a7ccd07e6fff042826a9aa51 Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Mon, 6 Oct 2025 10:52:05 -0400 Subject: [PATCH 3/3] Update docs/fsharp/tour.md --- docs/fsharp/tour.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/fsharp/tour.md b/docs/fsharp/tour.md index 730df02f472de..f3ef9be985077 100644 --- a/docs/fsharp/tour.md +++ b/docs/fsharp/tour.md @@ -49,7 +49,7 @@ You can also create `struct` tuples. These also interoperate fully with C#7/Vis [!code-fsharp[Tuples](~/samples/snippets/fsharp/tour.fs#L205-L218)] -The sample demonstrates using pattern matching to deconstruct tuples in function parameters, such as `(struct(a, b))`, which extracts the individual elements. For more information about pattern matching and deconstructing tuples, see [Tuples](language-reference/tuples.md). +The preceding sample demonstrates using pattern matching to deconstruct tuples in function parameters, such as `(struct(a, b))`, which extracts the individual elements. For more information about pattern matching and deconstructing tuples, see [Tuples](language-reference/tuples.md). It's important to note that because `struct` tuples are value types, they cannot be implicitly converted to reference tuples, or vice versa. You must explicitly convert between a reference and struct tuple.