We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0313397 commit 106bbadCopy full SHA for 106bbad
src/main/kotlin/rx/lang/kotlin/operators.kt
@@ -31,7 +31,7 @@ fun <T> Observable<T>.joinToString(separator: String? = null,
31
prefix: String? = null,
32
postfix: String? = null
33
) = withIndex()
34
- .collect( { StringBuilder(prefix?:"") },
35
- { builder: StringBuilder, next: IndexedValue<T> -> builder.append(if (next.index == 0) "" else separator?:"").append(next.value) }
+ .collect( { StringBuilder(prefix ?: "") },
+ { builder: StringBuilder, next: IndexedValue<T> -> builder.append(if (next.index == 0) "" else separator ?: "").append(next.value) }
36
)
37
- .map { it.append(postfix?:"").toString() }
+ .map { it.append(postfix ?: "").toString() }
0 commit comments