Kotlin HashSet flatten()
Syntax & Examples


Syntax of HashSet.flatten()

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

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

This flatten() extension function of HashSet returns a single list of all elements from all collections in the given collection.