Kotlin HashSet indexOfLast()
Syntax & Examples
Syntax of HashSet.indexOfLast()
The syntax of HashSet.indexOfLast() extension function is:
fun <T> Iterable<T>.indexOfLast( predicate: (T) -> Boolean ): Int
This indexOfLast() extension function of HashSet returns index of the last element matching the given predicate, or -1 if the collection does not contain such element.