C# to D

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 25 12:03:26 PDT 2015


>     .schwartzSort!(x => tuple(-arr.count!(y => y == x), x))

But calling "count" for each item is not efficient (in both C# 
and D). If your array is largish, then you need a more efficient 
solution.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list