private IVariable GetVariableForArray(MultiDimensionalArray array) { return((IVariable)functions[FunctionValues.IndexOf(array)]); }