Learning to use ranges instead of arrays

Bob Tolbert via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 20 08:57:06 PDT 2014


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) {


More information about the Digitalmars-d-learn mailing list