flatMapToSet

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

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

Sources

Katlib source
Link copied to clipboard