-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Description
// Complete active pattern definition.
let (|identifer1|identifier2|...|) [ arguments ] = expression
// Partial active pattern definition.
let (|identifier|_|) [ arguments ] = expressionIt should be
// Complete active pattern definition.
let (|identifer1|identifier2|...|) valueToMatch = expression //of type FSharp.Core.Choice<_,...,_> based on the number of case names. In F#, the limitation n ≤ 7 applies.
let (|identifier|) [arguments] valueToMatch= expression //of any type
// Partial active pattern definition.
let (|identifier|_|) [arguments ] valueToMatch = expression //of type FSharp.Core.option<_>Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 904a5ebc-16a2-a436-2fad-8152db42124a
- Version Independent ID: e761f0cd-27d2-2b64-f6a6-c1985081347b
- Content: Active Patterns - F#
- Content Source: docs/fsharp/language-reference/active-patterns.md
- Product: dotnet-fsharp
- GitHub Login: @cartermp
- Microsoft Alias: phcart