firstOrNull

inline fun firstOrNull(): T?

Returns the first element in the MutableVector or null if it isEmpty.

inline fun firstOrNull(predicate: (T) -> Boolean): T?

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