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

filterIndexedToSet

fun <T> Field<Iterable<T>>.filterIndexedToSet(predicate: (index: Int, T) -> Boolean): Field<Set<T>>
fun <T> Field<Sequence<T>>.filterIndexedToSet(predicate: (index: Int, T) -> Boolean): Field<Set<T>>

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

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

This is simply a convenience function.

See Also

com.femastudios.kotlin.core.filterIndexedToSet