Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
Posh
0.1.7
TipsAndTricks/NegativeIndexing.Tip.ps1
# Collections that take an integer index can be negative indexed.
# This will look backwards thru a collection
@(
1
..
100
)
[
-2
]