Patterns.Lambda Active Pattern (F#)
Recognizes expressions that represent first-class function values.
Namespace/Module Path: Microsoft.FSharp.Quotations.Patterns
Assembly: FSharp.Core (in FSharp.Core.dll)
The formal return type is (Var * Expr) option. The option indicates whether the input results in a match. In a pattern matching expression, the input is decomposed, upon a successful match, into a tuple of two elements. The first element is a Var object that represents a single argument. The second object is an expression that represents the body of the lambda expression. Lambda expressions that have multiple arguments are decomposed one argument at a time. For example, a lambda expression that has two arguments is decomposed so that the Var element is the first argument, and the Expr element is a lambda expression that can be recursively decomposed so that the second-level Var element is the second argument and the second-level Expr element is the body.