I am new to D. I am looking for the equivalent of this C++ declaration
typedef std::vector<std::string> the_value;
std::map<std::string,the_value> the_table;
You want something like this probably:
string[][string] the_table;
example:
import std.stdio;
void main(string[] args)
{
string[][string] the_table = ["k1" : ["v1", "v2"], "k2" : ["v3", "v4"]];
writeln(the_table);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With