mapToSet

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

Returns a set of the results of applying transform to each element.

Ordering follows the first occurrence of each transformed value.