Slide 42
Slide 42 text
Kotlin
listOf(1, 2, 3, 4).joinToString(separator = "; ") // "1; 2; 3; 4"
fun Iterable.joinToString(
separator: CharSequence = ", ",
prefix: CharSequence = "",
postfix: CharSequence = "",
limit: Int = -1,
truncated: CharSequence = "...",
transform: ((T) -> CharSequence)? = null): String
listOf(1, 2, 3, 4).joinToString(prefix = "(", postfix = ")") // "(1, 2, 3, 4)"