mapToSet

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

Similar to Iterable.map except it maps to a Set which preserves the iteration order.