first

fun first(): T

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

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

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