findLast

abstract fun findLast(predicate: Predicate<TextElement>): Int(source)

Finds the last index where the predicate matches, searching backward from the end.

Return

the last matching index, or -1 if no match found

Parameters

predicate

the condition to test

Throws

if predicate is null