Kotlin HashSet filterIsInstance()
Syntax & Examples


Syntax of HashSet.filterIsInstance()

The syntax of HashSet.filterIsInstance() extension function is:

fun <R> Iterable<*>.filterIsInstance(): List<R>

This filterIsInstance() extension function of HashSet returns a list containing all elements that are instances of specified type parameter R.