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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions