D-Programming-Language/phobos — pull request #1395 by Monnoroch (2013-07-06 16:07:55+00:00)
Title: Proposition to add a new template staticIndexedMap.

Usage:
template F(int index, T) {
alias F = TypeTuple!(index, T);
}
alias staticIndexedMap!(F,string) TL;
assert(TL[0] == 0 && is(TL[1] == string));

Just found myself needing it and thought that it might look well in std.typetuple.