Documentation / dataflow-async / com.femastudios.dataflow.async.extensions / filterIsInstanceToSet
Go to reference

filterIsInstanceToSet

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

Same as filterIsInstanceToSet, but accepts Attribute and returns a new Attribute.

Calling this function is equivalent to use transform and calling filterIsInstanceToSet in the transformation function.

This is simply a convenience function.

See Also

com.femastudios.kotlin.core.filterIsInstanceToSet