last

fun last(): Long(source)

Returns the last element in the LongList or throws a NoSuchElementException if it isEmpty.


inline fun last(predicate: (element: Long) -> Boolean): Long(source)

Returns the last element in the LongList for which predicate returns true or throws NoSuchElementException if nothing matches.

See also