Skip to content

Commit 0aad735

Browse files
StartAutomatingStartAutomating
authored andcommitted
Adding addition example for PipedAssignment (#88)
1 parent edfc541 commit 0aad735

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Transpilers/Syntax/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,21 @@ This directory and it's subdirectories contain syntax changes that enable common
2222
$Collection = $Collection | Where-Object Name -match $pattern
2323
~~~
2424

25+
## PipedAssignment Example 2
26+
27+
28+
~~~PowerShell
29+
{
30+
$Collection |=| Where-Object Name -match $pattern | Select-Object -ExpandProperty Name
31+
} | .>PipeScript
32+
33+
# This will become
34+
35+
$Collection = $Collection |
36+
Where-Object Name -match $pattern |
37+
Select-Object -ExpandProperty Name
38+
~~~
39+
2540
## RegexLiteral Example 1
2641

2742

0 commit comments

Comments
 (0)