11 lines
358 B
Plaintext
11 lines
358 B
Plaintext
command assocArray
|
|
local tArray
|
|
put "value 1" into tArray["key 1"]
|
|
put 123 into tArray["key numbers"]
|
|
put "a,b,c" into tArray["abc"]
|
|
|
|
put "number of elements:" && the number of elements of tArray & return & \
|
|
"length of item 3:" && the length of tArray["abc"] & return & \
|
|
"keys:" && the keys of tArray
|
|
end assocArray
|