lastOrNull

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)

Return the last element matching the given predicate, or null if no such element was found.

The operation is terminal.