last

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


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

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

See also