http://d.puremagic.com/issues/show_bug.cgi?id=5871



--- Comment #1 from bearophile_h...@eml.cc 2011-04-22 19:36:53 PDT ---
This compiles, s is a int[] instead of char[]:


import std.algorithm, std.stdio;
void main() {
    int[] s = [10, 20, 30, 10, 20, 10];
    int[] indexes = [0, 1, 2, 3, 4, 5];
    schwartzSort!((int i){ return s.count(s[i]); }, "b < a",
SwapStrategy.stable)(indexes);
    writeln(indexes); // output: [0, 1, 2, 3, 4, 5]
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to