Kotlin HashSet elementAtOrNull()
Syntax & Examples
Syntax of HashSet.elementAtOrNull()
The syntax of HashSet.elementAtOrNull() extension function is:
fun <T> Iterable<T>.elementAtOrNull(index: Int): T?
This elementAtOrNull() extension function of HashSet returns an element at the given index or null if the index is out of bounds of this collection.