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

filterToSet

fun <T> Field<Iterable<T>>.filterToSet(predicate: (T) -> Boolean): Field<Set<T>>
fun <T> Field<Sequence<T>>.filterToSet(predicate: (T) -> Boolean): Field<Set<T>>

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

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

This is simply a convenience function.

See Also

com.femastudios.kotlin.core.filterToSet