Kotlin HashSet filterNotNullTo()
Syntax & Examples
Syntax of HashSet.filterNotNullTo()
The syntax of HashSet.filterNotNullTo() extension function is:
fun <C : MutableCollection<in T>, T : Any> Iterable<T?>.filterNotNullTo( destination: C ): C
This filterNotNullTo() extension function of HashSet appends all elements that are not null to the given destination.