takeLastWhile

inline fun takeLastWhile(predicate: (Double) -> Boolean): DoubleList(source)

Returns a new DoubleList containing the last elements that satisfy the given predicate.

Return

A DoubleList containing the final contiguous elements matching predicate.

Parameters

predicate

Function that tests each element for a condition.