Hash from two arrays: Difference between revisions

Content added Content deleted
No edit summary
Line 837: Line 837:
Inventory Dict
Inventory Dict
For i=0 to 3 {
For i=0 to 3 {
Append Dict, Keys$(i):=Values(0)
Append Dict, Keys$(i):=Values(i)
}
}
Print Dict("one")+Dict("four")=Dict("two")+Dict("three") ' true
Print Dict("one")+Dict("four")=Dict("two")+Dict("three") ' true
Line 847: Line 847:
Inventory Dict
Inventory Dict
For i=0 to 3 {
For i=0 to 3 {
Append Dict, Keys$(i):=Values$(0)
Append Dict, Keys$(i):=Values$(i)
}
}
Print Dict$("one")+Dict$("four")=Dict$("two")+Dict$("three") ' true
Print Dict$("one")+Dict$("four")=Dict$("two")+Dict$("three") ' true