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

flatMapToSet

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

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

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