last

fun <E : Any> EntitySequence<E, *>.last(): E(source)

Return the last element, or throws NoSuchElementException if the sequence is empty.

The operation is terminal.


inline fun <E : Any, T : BaseTable<E>> EntitySequence<E, T>.last(predicate: (T) -> ColumnDeclaring<Boolean>): E(source)

Return the last element matching the given predicate, or throws NoSuchElementException if no such element found.

The operation is terminal.