Here `tmp` is an internal variable in the function. Developers using that function do not see that variable. So mentioning it in the documentation does not make sense.    I would suggest: `Remove the element at the given position from the array and return the value of that element.`