flatMapToSet

inline fun <T, R> Iterable<T>.flatMapToSet(transform: (T) -> Iterable<R>): Set<R>(source)

Applies the given transform function to each element of the original collection and returns results as Set.