api-docs / org.ktorm.entity / last
last
fun <E : Any> EntitySequence<E, *>.last(): E
(source code)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 code)Return the last element matching the given predicate, or throws NoSuchElementException if no such element found.
The operation is terminal.