Hash from two arrays: Difference between revisions
no edit summary
(added MiniScript example) |
Drkameleon (talk | contribs) No edit summary |
||
Line 89:
hash[keys[i]] = values[i]
del hash hash</lang>
=={{header|Arturo}}==
<lang arturo>a: #("one" "two" "three" "four")
b: #(1 2 3 4)
dict: toDictionary|zip a b
print dict</lang>
{{out}}
<pre>#{ four: 4, one: 1, three: 3, two: 2 }</pre>
=={{header|AutoHotkey}}==
|