We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ec1153 commit 22d829eCopy full SHA for 22d829e
Transpilers/Syntax/Dot.psx.ps1
@@ -26,7 +26,21 @@
26
.EXAMPLE
27
.> { 1.99 | .ToString('C') }
28
29
- 1..5 | .Number { $_ } .Even { -not ($_ % 2) } .Odd { ($_ % 2) -as [bool]}
+ .> { 1..5 | .Number { $_ } .Even { -not ($_ % 2) } .Odd { ($_ % 2) -as [bool]} }
30
+.EXAMPLE
31
+ .> { .ID { Get-Random } .Count { 0 } .Total { 10 }}
32
33
+ .> {
34
+ # Declare a new object
35
+ .Property = "ConstantValue" .Numbers = 1..100 .Double = {
36
+ param($n)
37
+ $n * 2
38
+ } .EvenNumbers = {
39
+ $this.Numbers | Where-Object { -not ($_ % 2)}
40
+ } .OddNumbers = {
41
+ $this.Numbers | Where-Object { $_ % 2}
42
+ }
43
44
#>
45
[ValidateScript({
46
$commandAst = $_
0 commit comments