Kotlin HashSet indexOf()
Syntax & Examples
Syntax of HashSet.indexOf()
The syntax of HashSet.indexOf() extension function is:
fun <T> Iterable<T>.indexOf(element: T): Int
This indexOf() extension function of HashSet returns first index of element, or -1 if the collection does not contain element.