Generate an Array from a Function on Indices

Here, functions are applied to the indices of the arrays.