Sorting with unaryFun predicate

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jan 6 07:55:00 PST 2017


On Friday, 6 January 2017 at 15:36:42 UTC, Nordlöw wrote:
> Why isn't there an overload for `std.algorithm.sorting.sort` 
> that takes a `unaryFun` lambda?
>
>     x[].sort!"a.m < b.m";

Oops,

http://forum.dlang.org/post/nxdsmdimnfssqmeybuxp@forum.dlang.org
https://github.com/nordlow/phobos-next/blob/master/src/sort_ex.d

Deja vu


More information about the Digitalmars-d-learn mailing list