diff options
Diffstat (limited to 'plugins/base/src/main/kotlin/translators/CollectionExtensions.kt')
-rw-r--r-- | plugins/base/src/main/kotlin/translators/CollectionExtensions.kt | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/plugins/base/src/main/kotlin/translators/CollectionExtensions.kt b/plugins/base/src/main/kotlin/translators/CollectionExtensions.kt deleted file mode 100644 index 0de4b5b1..00000000 --- a/plugins/base/src/main/kotlin/translators/CollectionExtensions.kt +++ /dev/null @@ -1,12 +0,0 @@ -package org.jetbrains.dokka.base.translators - -// TODO [beresnev] remove this copy-paste and use the same method from stdlib instead after updating to 1.5 -internal inline fun <T, R : Any> Iterable<T>.firstNotNullOfOrNull(transform: (T) -> R?): R? { - for (element in this) { - val result = transform(element) - if (result != null) { - return result - } - } - return null -} |