The new, new phobos sneak preview

bearophile bearophileHUGS at lycos.com
Fri Apr 10 17:23:12 PDT 2009


Andrei Alexandrescu:
> Then please vote up my comment which shows a solution that is simple 
> *and* efficient :o).

Does it work with (the keys of) an AA too? For example:
int[double] aa = [3.0:0, 4:0, 7:0, 11:0, 3:0, 2:0, 5:0];
auto r = reduce!(min, max)(aa);

Bye,
bearophile



More information about the Digitalmars-d mailing list