PowerShell: Join Hashtables

By Xah Lee. Date: .

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]

PowerShell Hashtable, Dictionary