Added f(x[4]) returning 42.
C++0x and initializer list.
Made parameter type generic.
Added placeholder variable type.