Documentation / kotlin-core / com.femastudios.kotlin.core / kotlin.collections.Iterable / filterIsInstanceToSet

filterIsInstanceToSet

inline fun <reified R> Iterable<*>.filterIsInstanceToSet(): Set<R>

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


fun <R> Iterable<*>.filterIsInstanceToSet(klass: Class<R>): Set<R>

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