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