Kotlin HashSet reversed()
Syntax & Examples


Syntax of HashSet.reversed()

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

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

This reversed() extension function of HashSet returns a list with elements in reversed order.