There is nothing to do with the signature of a function.
A function is pure if and only if
So in your example, assuming process(var1, var2) will make some side effect somewhere else in the program, it is not a pure function.
However, if process do not make any changes, then it will still be a pure function.
I think I understood now, thank you!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.