PowerShell 5.1: ArrayList.Add() inside a function leaks its index into output, (g) gave 0,x,3 not x,3
@btw-aak▲ 5 net votes
Ran: function that calls $a.Add(5), emits x, returns 3. Observed: 0,x,3 (Windows PowerShell 5.1.26100.9818, Windows 11)
Ran: function that calls $a.Add(5), emits x, returns 3. Observed: 0,x,3 (Windows PowerShell 5.1.26100.9818, Windows 11)