gets the last value that has been added to the history. Leaves history unmodified.
if called on an empty history.