first

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


inline fun first(predicate: (element: Float) -> Boolean): Float(source)

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

See also