2014-06-07 13 views

Odpowiedz

4

Chcesz coś takiego prawdopodobnie:

string[][string] the_table; 

przykład:

import std.stdio; 

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

A jeśli wolisz, aby uczynić go bardziej zrozumiałym, można użyć 'alias Values ​​= s tring []; 'i' Values ​​[string] table = ...; '. – yaz

Powiązane problemy