aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/utilities
diff options
context:
space:
mode:
authorPaweł Marks <pmarks@virtuslab.com>2020-02-16 23:02:30 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-02-18 13:28:23 +0100
commit705c6d45f95408633c71bc0bcd6bc93c9d79a381 (patch)
tree981bb204b14b2b74656f9b5010359f7c24c09516 /core/src/main/kotlin/utilities
parente82beddda7b51f285f0422c6a7078a0a80d54d14 (diff)
downloaddokka-705c6d45f95408633c71bc0bcd6bc93c9d79a381.tar.gz
dokka-705c6d45f95408633c71bc0bcd6bc93c9d79a381.tar.bz2
dokka-705c6d45f95408633c71bc0bcd6bc93c9d79a381.zip
Renames DocumentationMerger and moves it to base plugin
Diffstat (limited to 'core/src/main/kotlin/utilities')
-rw-r--r--core/src/main/kotlin/utilities/genericUtils.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/main/kotlin/utilities/genericUtils.kt b/core/src/main/kotlin/utilities/genericUtils.kt
new file mode 100644
index 00000000..e94e4e8f
--- /dev/null
+++ b/core/src/main/kotlin/utilities/genericUtils.kt
@@ -0,0 +1,3 @@
+package org.jetbrains.dokka.utilities
+
+fun <T : Any, S : Any> Pair<T?, S?>.pullOutNull(): Pair<T, S>? = first?.let { f -> second?.let { s -> f to s } } \ No newline at end of file