我熟悉基本范围运算符:
.. Range operator
Represents the sequential integers in an integer array, given an upper and lower boundary.
1..10
10..1
foreach ($a in 1..$max) {write-host $a}
但是,我今天不小心使用了省略号 ( ...
) 而不是范围运算符 ( ..
),并注意到它出于某种原因从 N 枚举到 0:
PS C:\> 5...3
5
4
3
2
1
0
这是怎么回事?