Optimizing Java using D

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Mon Jun 23 08:20:44 PDT 2014


Steven Schveighoffer:

> The only thing I can think of that won't work is sorting an 
> array of char or wchar, which std.algorithm.sort will not do 
> (right?).

The solution I have suggested is:

myString.representation.sort().release.unrepresentation

(Where unrepresentation  is not yet present in Phobos).

Bye,
bearophile


More information about the Digitalmars-d mailing list