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

filterIsInstanceToSet

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

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

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