Kotlin HashSet unzip()
Syntax & Examples
Syntax of HashSet.unzip()
The syntax of HashSet.unzip() extension function is:
fun <T, R> Iterable<Pair<T, R>>.unzip(): Pair<List<T>, List<R>>
This unzip() extension function of HashSet returns a pair of lists, where first list is built from the first values of each pair from this collection, second list is built from the second values of each pair from this collection.