-
Notifications
You must be signed in to change notification settings - Fork 6k
Open
Labels
Description
[Enter feedback here]
For the cons pattern matching section, a very useful construct that should be included in the documentation is the multiple cons pattern:
match xs with
| 'A'::'B'::t -> "starts with 'AB'"
| 'A'::t -> "starts with 'A'"
| 'C'::'D'::t -> "starts with 'CD'"
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 8a3ed054-03c9-375f-403b-68f0356d5870
- Version Independent ID: 3c167003-13e8-359b-e919-693258e7f48b
- Content: Pattern Matching - F#
- Content Source: docs/fsharp/language-reference/pattern-matching.md
- Product: dotnet-fsharp
- GitHub Login: @cartermp
- Microsoft Alias: dotnetcontent