Has AA .keys the same order as .values?
    Rene Zwanenburg 
    renezwanenburg at gmail.com
       
    Mon Jul 30 09:00:58 PDT 2012
    
    
  
Hi,
I need to interleave multiple arrays stored in an AA into a 
single array, and the keys of the AA need to be stored separately 
in the same order as the interleaved data. As an example:
auto aa = [
   "1" : [1, 2],
   "2" : [3, 4],
   "3" : [5, 6],
   "4" : [7, 8]
]
auto values = aa.values;
auto keys =  aa.keys;
//Store keys, and interleave values
I did a quick test and values has the same order as keys, but is 
this guaranteed to be the case?
    
    
More information about the Digitalmars-d-learn
mailing list