Skip to content

Include multiple cons sample #28742

@davidgeoffreyjones

Description

@davidgeoffreyjones

[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.


Associated WorkItem - 498240

Metadata

Metadata

Labels

📌 seQUESTeredIdentifies that an issue has been imported into Quest.🗺️ mapQUESTOnly used as a way to mark an issue as updated for quest. RepoMan should instantly remove it.dotnet-fsharp/svcin-prThis issue will be closed (fixed) by an active pull request.okr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions