C# to D
Ivan Kazmenko via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Mar 25 13:03:23 PDT 2015
On Wednesday, 25 March 2015 at 20:02:20 UTC, Ivan Kazmenko wrote:
> (2) The documentation says it is more efficient than the first
> version in the number of comparisons (verbose lambda with plain
> sort) [1], but I don't get how it is possible: unless we know
> than (not pred1(a,b)) and (not !pred1(a,b)), we can not proceed
> by evaluating pred2(a,b).
[1] http://dlang.org/phobos/std_algorithm_sorting.html#.multiSort
More information about the Digitalmars-d-learn
mailing list