D-Programming-Language/phobos — pull request #1396 by Monnoroch (2013-07-06 20:12:40+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 good in std.typetuple.