Hi all,
I have the following two arrays:
[0,0,1,0,0,1,0] and [a,b,c,d,e,f]
and I would want the following object:
{0:[a,b,d,f],1:[c,e]}
That is, I want items in the first array to become the keys (0 and 1) and corresponding items in the other array to become the values. Repeated Items in the key array are will have the corresponding items in the values array placed in an list.
I have tried within my abilities and I keep getting the following
{0:a,1:c}.
Your help would be highly appreciated. Thanks.