Why Does Array Indexing Behave Differently Inside a PowerShell String?
I'm trying to format all arguments passed to a PowerShell function: function lf { if ($args) { (0..($args.Count - 1) | ForEach-Object { "$args[$_]" }) -join ',' (0..($args.Count…
I'm trying to format all arguments passed to a PowerShell function: function lf { if ($args) { (0..($args.Count - 1) | ForEach-Object { "$args[$_]" }) -join ',' (0..($args.Count…