This does not produce the desired result. Keep in mind, keys are "AA" and "BB", and values for those keys are lists a and b, respectively.
But it got me on the correct track, so this works as intended:
a = {"a1", "a2", "a3"};
b = {"b1", "b2", "b3"};
keys = {"AA", "BB"};
values = Eval List({a, b});
AB = Associative Array({keys, values});
AB["AA"];
Thanks!
P.S. Actually it doesn't work either.
I can't understand how JMP decides which one to use if my values are lists too??
//Create an associative array from a list that contains two lists of a key-value pair:
map = Associative Array( {{"yes", 0}, {"no", 1}} );
//Create an associative array from a list of keys and a list of values:
map = Associative Array( {"yes", "no"}, {0, 1} );