Kotlin HashSet elementAt()
Syntax & Examples


Syntax of HashSet.elementAt()

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

fun <T> Iterable<T>.elementAt(index: Int): T

This elementAt() extension function of HashSet returns an element at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this collection.