Kotlin HashSet distinct()
Syntax & Examples
Syntax of HashSet.distinct()
The syntax of HashSet.distinct() extension function is:
fun <T> Iterable<T>.distinct(): List<T>
This distinct() extension function of HashSet returns a list containing only distinct elements from the given collection.