last

fun last(): T

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

inline fun last(predicate: (T) -> Boolean): T

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