Kotlin HashSet findLast()
Syntax & Examples


Syntax of HashSet.findLast()

The syntax of HashSet.findLast() extension function is:

fun <T> Iterable<T>.findLast(predicate: (T) -> Boolean): T?

This findLast() extension function of HashSet returns the last element matching the given predicate, or null if no such element was found.