Home renovation kept me from doing much IT related things in my free time, but this is something I needed to share. If you do this in powershell:
$array = @(1,2,3,4,5,6,7,8,9,10)
$array[0..-1]
The result is really not what any programmer would expect. Rather than throw an exception, powershell simply decides to roll over to the end and say that the result is
1
10