Skip to content

Commit edfc541

Browse files
author
James Brundage
committed
Adding addition example for PipedAssignment (#88)
1 parent 16aacec commit edfc541

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Transpilers/Syntax/PipedAssignment.psx.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313
# This will become:
1414
1515
$Collection = $Collection | Where-Object Name -match $pattern
16+
.EXAMPLE
17+
{
18+
$Collection |=| Where-Object Name -match $pattern | Select-Object -ExpandProperty Name
19+
} | .>PipeScript
20+
21+
# This will become
22+
23+
$Collection = $Collection |
24+
Where-Object Name -match $pattern |
25+
Select-Object -ExpandProperty Name
1626
#>
1727
[ValidateScript({
1828
$ast = $_

0 commit comments

Comments
 (0)