first

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


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

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

See also