takeLastWhile

inline fun takeLastWhile(predicate: (Int) -> Boolean): IntList(source)

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

Return

A IntList containing the final contiguous elements matching predicate.

Parameters

predicate

Function that tests each element for a condition.