Kotlin HashSet map()
Syntax & Examples


Syntax of HashSet.map()

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

fun <T, R> Iterable<T>.map(transform: (T) -> R): List<R>

This map() extension function of HashSet returns a list containing the results of applying the given transform function to each element in the original collection.