2014-06-07 8 views

risposta

4

si desidera qualcosa di simile probabilmente:

string[][string] the_table; 

esempio:

import std.stdio; 

void main(string[] args) 
{ 
    string[][string] the_table = ["k1" : ["v1", "v2"], "k2" : ["v3", "v4"]]; 
    writeln(the_table); 
} 
+1

E se si preferisce per renderlo più chiaro, è possibile utilizzare 'alias Valori = s tring []; 'e' Values ​​[string] table = ...; '. – yaz