api-docs / org.ktorm.entity / lastOrNull
lastOrNull
fun <E : Any> EntitySequence<E, *>.lastOrNull(): E?
(source code)Return the last element, or null
if the sequence is empty.
The operation is terminal.
inline fun <E : Any, T : BaseTable<E>> EntitySequence<E, T>.lastOrNull(
predicate: (T) -> ColumnDeclaring<Boolean>
): E?
(source code)Return the last element matching the given predicate, or null
if no such element was found.
The operation is terminal.