On Wednesday, 6 August 2014 at 18:07:08 UTC, H. S. Teoh via Digitalmars-d-learn wrote:

        import std.algorithm : reduce, max, min;

auto highest = reduce!((a,b) => max(a,b))(-double.max, bids.byValue()); auto lowest = reduce!((a,b) => min(a,b))(double.max, bids.byValue());


T

Take a look at Justin Whear's dpaste. Dual pred reduce FTW.

Reply via email to