RosettaCodeData/Task/Associative-array-Iteration/PowerShell/associative-array-iteration...

6 lines
100 B
Plaintext

$h.Keys | ForEach-Object { Write-Host Key: $_ }
foreach ($k in $h.Keys) {
Write-Host Key: $k
}