filterIsInstance

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

Platform and version requirements: JVM

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

Platform and version requirements: JVM

Returns a list containing all elements that are instances of specified class.

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

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