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