blob: 80b66f4be53312452bcd01632fe811fc40113aa2 (
plain)
1
2
3
4
5
6
7
|
package org.jetbrains.dokka.dokkatoo.internal
internal fun <T, R> Set<T>.mapToSet(transform: (T) -> R): Set<R> =
mapTo(mutableSetOf(), transform)
internal fun <T, R : Any> Set<T>.mapNotNullToSet(transform: (T) -> R?): Set<R> =
mapNotNullTo(mutableSetOf(), transform)
|