Documentation for this method says it takes a value from the front, but the code actually does the opposite, takes it from the back. Shall we fix documentation or the code?