Skip to content

Commit 37dbeb6

Browse files
Mention the alternate notation of lambda expression in Syntax
1 parent fdb4e2d commit 37dbeb6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/fsharp/language-reference/functions/lambda-expressions-the-fun-keyword.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ The `fun` keyword is used to define a lambda expression, that is, an anonymous f
1313
fun parameter-list -> expression
1414
```
1515

16+
or using the _.Property shorthand notation:
17+
18+
```fsharp
19+
_.
20+
```
21+
22+
where `fun`, *parameter-list* and lambda arrow (`->`) is omitted and the `_.` is a part of *expression* where `_` replaces the parameter call.
23+
1624
## Remarks
1725

1826
The *parameter-list* typically consists of names and, optionally, types of parameters. More generally, the *parameter-list* can be composed of any F# patterns. For a full list of possible patterns, see [Pattern Matching](../pattern-matching.md). Lists of valid parameters include the following examples.

0 commit comments

Comments
 (0)