Do sorted ranges have any special properties?

bearophile bearophileHUGS at lycos.com
Wed Jul 28 10:54:12 PDT 2010


Philippe Sigaud:

> auto vowelsInMyText = filter ! q{a in assumeSorted("aeiou")} (myText);

In a so small array of chars (or even wchars/dchars) a sequential search (if well implemented!) is the fastest algorithm.

Bye,
bearophile


More information about the Digitalmars-d mailing list