Documentation / dataflow-async / com.femastudios.dataflow.async.extensions / filterToSet
Go to reference
Go to reference
filterToSet
fun <T> Attribute<Iterable<T>>.filterToSet(predicate: (T) -> Boolean): Attribute<Set<T>>
fun <T> Attribute<Sequence<T>>.filterToSet(predicate: (T) -> Boolean): Attribute<Set<T>>
Same as filterToSet, but accepts Attribute and returns a new Attribute.
Calling this function is equivalent to use transform and calling filterToSet in the transformation function.
This is simply a convenience function.
See Also