Type of elements within the source iterable.
Subtype confirmed when a type guard predicate is supplied.
The source iterable.
Predicate evaluated against each element. When omitted, the last element of the sequence is returned. When a type guard is supplied, the returned value is narrowed to TFiltered.
The last element that satisfies the predicate (or the final element when no predicate is supplied).
Returns the last element in the sequence, optionally filtered by a predicate or type guard.