Kotlin HashSet filter()
Syntax & Examples
Syntax of HashSet.filter()
The syntax of HashSet.filter() extension function is:
fun <T> Iterable<T>.filter( predicate: (T) -> Boolean ): List<T>
This filter() extension function of HashSet returns a list containing only elements matching the given predicate.