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

filterIndexedToSet

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

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

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