flatMapToSet

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