PowerShell: Join Hashtables
Join Hashtables
$aa = [ordered] @{"a" = 1; "b" = 2; } $bb = [ordered] @{"c" = 3; "d" = 4; } $cc = $aa + $bb Write-Host $cc # [a, 1] [b, 2] [c, 3] [d, 4]
$aa = [ordered] @{"a" = 1; "b" = 2; } $bb = [ordered] @{"c" = 3; "d" = 4; } $cc = $aa + $bb Write-Host $cc # [a, 1] [b, 2] [c, 3] [d, 4]