That looks like it.. only, it's not working:
void main()
{
TypeTuple!(int, int) foo;
foo[0] = 1;
foo[1] = 2;
double MakeStuff(in int bar)
{
return cast(double)bar;
}
auto foobar = staticMap!(MakeStuff)(foo);
}
This fails compilation with the error "Error: function expected before (), not ()
of type ()"