Andrei Alexandrescu:

> "Iterate collection by key".

Is this code now working? (I have tried it hours ago):

import std.stdio, std.algorithm;
void main () {
    auto aa = ["a":1, "b":2];
    writeln(aa.byValue());
    writeln( map!q{ a * a }(aa.byValue()) );
}


Bye,
bearophile

Reply via email to