langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
|
|
@ -0,0 +1,13 @@
|
|||
function create_hash ([array] $keys, [array] $values) {
|
||||
$h = @{}
|
||||
if ($keys.Length -ne $values.Length) {
|
||||
Write-Error -Message "Array lengths do not match" `
|
||||
-Category InvalidData `
|
||||
-TargetObject $values
|
||||
} else {
|
||||
for ($i = 0; $i -lt $keys.Length; $i++) {
|
||||
$h[$keys[$i]] = $values[$i]
|
||||
}
|
||||
}
|
||||
return $h
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue