Hash from two arrays: Difference between revisions

Content added Content deleted
(added MiniScript example)
No edit summary
Line 89: Line 89:
hash[keys[i]] = values[i]
hash[keys[i]] = values[i]
del hash hash</lang>
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}}==
=={{header|AutoHotkey}}==