If I have a function that accepts an array as a parameter, e.g.

double DoStuff(int arr[])

Are there any ways of specifiying the indices of that array to effect a change in the array element order?

So doing something like...

double DoStuff(int arr[3,1,0,2])
or
double DoStuff(int arr[3], arr[1], arr[0], arr[2])
or
something similar?

I can of course create a new array with the elements in the revised order and pass that, but just wondered if there is a shortcut for this?