www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Learning to use ranges instead of arrays

reply "Bob Tolbert" <bob tolbert.org> writes:
I find myself writing this code too much and i'm curious what D 
idiom I am missing.

given a list of files (or any string) and then maybe I want to 
sort them and maybe I don't.

     string [] fileList;

     ... fill list

     if (sort) {
Jul 20 2014
parent "Bob Tolbert" <bob tolbert.org> writes:
Sorry, somehow this submitted in the middle, even without the 
captcha.

Please see the later version.
Jul 20 2014