Passing a constant variable as a reference?

 
I have some code that I want to apply to both the constant arrays High, and Low. So I created a function that takes an array as a reference and I try to call it on both the arrays High and Low. Of course, when I try this, I get an error; saying that I cannot pass a constant array as a reference. What's the best way to go about solving this issue?
 

The solution I have used so far is just to create a helper function:

 

double highlow(int i, bool isHigh)

{

   if(isHigh){return High[i];} else { return Low[i]; } 

 

If there is an easier way though, please let me know.