[Issue 14293] min and max with predicate

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Mar 16 10:28:53 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14293

--- Comment #1 from Andrei Alexandrescu <andrei at erdani.com> ---
Oops, sorry, I meant unary predicates (the "<" is implied):

string x, y;
...
auto s = min!(a => a.length)(x, y, "hello");

--


More information about the Digitalmars-d-bugs mailing list