kotlin.collections.filterIsInstance

filterIsInstance

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

Returns a list containing all elements that are instances of specified type parameter R.

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

Platform and version requirements: JVM

fun <R> Array<*>.filterIs