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

flatMapToSet

fun <T, R> Attribute<Iterable<T>>.flatMapToSet(transform: (T) -> Iterable<R>): Attribute<Set<R>>
fun <K, V, R> Attribute<Map<K, V>>.flatMapToSet(transform: (Entry<K, V>) -> Iterable<R>): Attribute<Set<R>>
fun <T, R> Attribute<Sequence<T>>.flatMapToSet(transform: (T) -> Sequence<R>): Attribute<Set<R>>
fun <R> Attribute<String>.flatMapToSet(transform: (Char) -> Iterable<R>): Attribute<Set<R>>

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

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

This is simply a convenience function.

See Also

com.femastudios.kotlin.core.flatMapToSet