bearophile wrote:
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);
No, AAs are poorly designed (no iteration etc.) so std.algorithm is not
even attempting to support them. My plan is to cajole Walter and Sean
into making AA real types, after which I can add the appropriate
functionality.
Andrei