diff options
author | Paweł Marks <pmarks@virtuslab.com> | 2020-02-16 23:02:30 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-02-18 13:28:23 +0100 |
commit | 705c6d45f95408633c71bc0bcd6bc93c9d79a381 (patch) | |
tree | 981bb204b14b2b74656f9b5010359f7c24c09516 /core/src/main/kotlin/utilities | |
parent | e82beddda7b51f285f0422c6a7078a0a80d54d14 (diff) | |
download | dokka-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.kt | 3 |
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 |