Checks if range ends with a given element.
The range of values to check if ends with elem.
True if range ends with elem.
See Implementation
Checks if range ends with a given element.