https://issues.dlang.org/show_bug.cgi?id=6788 --- Comment #5 from hsteoh at quickfur.ath.cx --- Hmm. Sounds like what you want is n-element subsets, rather than tuples specifically. I'll see if I can find any good algorithms for n-subset enumeration... --