takeLastWhile

inline fun takeLastWhile(predicate: (Long) -> Boolean): LongList(source)

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

Return

A LongList containing the final contiguous elements matching predicate.

Parameters

predicate

Function that tests each element for a condition.