On Sunday, 7 July 2013 at 12:27:02 UTC, Peter Alexander wrote:
:-(template allSatisfy(alias F, T...) { static if (T.length == 0) { enum allSatisfy = true; } else static if (T.length == 1) { enum allSatisfy = F!(T[0]); } else { enum allSatisfy = allSatisfy!(F, T[ 0 .. $/2]) && allSatisfy!(F, T[$/2 .. $ ]); } }
It's deplhi-style http://www.freepascal.org/docs-html/ref/refse77.html#x155-16500014.3
