Kotlin HashSet lastIndexOf()
Syntax & Examples


Syntax of HashSet.lastIndexOf()

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

fun <T> Iterable<T>.lastIndexOf(element: T): Int

This lastIndexOf() extension function of HashSet returns last index of element, or -1 if the collection does not contain element.