PowerShell array initialization

Here’s two more ways, both very concise.

$arr1 = @(0) * 20
$arr2 = ,0 * 20

Leave a Comment