Get the last element or throw an exception if there is no such element.
T the last element
if sequence is empty.
Get the last element by condition or throw an exception if there is no such element.
filter condition