diff options
author | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-28 18:06:40 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-31 15:10:04 +0200 |
commit | c75185e229c7e8bf8e2d894d08d1d0159cd60094 (patch) | |
tree | 1f44f2ebaab9d20e9f43a919663948c09e1333fb | |
parent | fc22bf083554dd2dae2cdfdddc56c81f340d201a (diff) | |
download | dokka-c75185e229c7e8bf8e2d894d08d1d0159cd60094.tar.gz dokka-c75185e229c7e8bf8e2d894d08d1d0159cd60094.tar.bz2 dokka-c75185e229c7e8bf8e2d894d08d1d0159cd60094.zip |
CompositeSourceSetID: drop reduce in favour of `joinToString`
Co-authored-by: Paweł Marks <Kordyjan@users.noreply.github.com>
-rw-r--r-- | core/src/main/kotlin/model/CompositeSourceSetID.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/kotlin/model/CompositeSourceSetID.kt b/core/src/main/kotlin/model/CompositeSourceSetID.kt index 9f38dafb..e14b01df 100644 --- a/core/src/main/kotlin/model/CompositeSourceSetID.kt +++ b/core/src/main/kotlin/model/CompositeSourceSetID.kt @@ -14,8 +14,8 @@ data class CompositeSourceSetID( } val merged = DokkaSourceSetID( - scopeId = children.map { it.scopeId }.reduce { acc, s -> "$acc+$s" }, - sourceSetName = children.map { it.sourceSetName }.reduce { acc, s -> "$acc+$s" } + scopeId = children.joinToString(separator = "+") { it.scopeId }, + sourceSetName = children.joinToString(separator = "+") { it.sourceSetName } ) val all: Set<DokkaSourceSetID> = setOf(merged, *children.toTypedArray()) |