RosettaCodeData/Task/Hash-from-two-arrays/AutoHotkey/hash-from-two-arrays.ahk
2023-07-01 13:44:08 -04:00

6 lines
182 B
AutoHotkey

array1 := ["two", "three", "apple"]
array2 := [2, 3, "fruit"]
hash := {}
Loop % array1.maxIndex()
hash[array1[A_Index]] := array2[A_Index]
MsgBox % hash["apple"] "`n" hash["two"]