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

filterIsInstance

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

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

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

This is simply a convenience function.

See Also

kotlin.collections.filterIsInstance


fun <R> Field<Sequence<*>>.filterIsInstance(klass: Field<Class<R>>): Field<Sequence<R>>
fun <R> Field<Sequence<*>>.filterIsInstance(klass: Class<R>): Field<Sequence<R>>
fun <reified R> Field<Sequence<*>>.filterIsInstance(): Field<Sequence<R>>

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

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

This is simply a convenience function.

See Also

kotlin.sequences.filterIsInstance