mapToSet

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

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