Code: Select all
arr := {"aaa": "foo", "bbb": "bar"}
1
* aaa and bbb are the keys.
* foo and bar are the values.
* "aaa": "foo" and "bbb": "bar" are the elements (= key-value pairs).
2
* aaa and bbb are the keys.
* foo and bar are the values (= elements. The word "elements" is just a synonym for "values").
* "aaa": "foo" and "bbb": "bar" are the key-value (= key-element) pairs.
Note that this confusion is not just my own.
Code: Select all
; https://www.autohotkey.com/docs/commands/For.htm
For Key, VALUE in Expression
; https://www.autohotkey.com/docs/misc/Arrays.htm
For Index, ELEMENT in Array