Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 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