Kotlin HashSet filterNotNull()
Syntax & Examples
Syntax of HashSet.filterNotNull()
The syntax of HashSet.filterNotNull() extension function is:
fun <T : Any> Iterable<T?>.filterNotNull(): List<T>
This filterNotNull() extension function of HashSet returns a list containing all elements that are not null.