Kotlin HashSet toList()
Syntax & Examples


Syntax of HashSet.toList()

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

fun <T> Iterable<T>.toList(): List<T>

This toList() extension function of HashSet returns a List containing all elements.