Making associatvie array from array of pairs

Dfr deflexor at yandex.ru
Tue Dec 24 03:36:22 PST 2013


Let's say i have array of kind:

auto a = [["1","0000FF"], ["2", "00FF00"], ...];

Is there simple way to turn it into associative array of kind:

string[string] b = ["1": "0000FF", "2": "00FF00", ...];




More information about the Digitalmars-d-learn mailing list