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