flatMapToSet

inline fun <T, R> Iterable<T>.flatMapToSet(destination: MutableSet<R> = mutableSetOf(), transform: (T) -> Iterable<R>): Set<R>
inline fun <T, R> Sequence<T>.flatMapToSet(destination: MutableSet<R> = mutableSetOf(), transform: (T) -> Iterable<R>): Set<R>

Sources

Link copied to clipboard
Link copied to clipboard