Logo

Programming-Idioms

History of Idiom 53 > diff from v52 to v53

Edit summary for version 53 by fojji:
New Kotlin implementation by user [fojji]

Version 52

2019-05-12, 19:56:56

Version 53

2019-09-26, 18:42:31

Idiom #53 Join a list of strings

Concatenate elements of string list x joined by the separator ", " to create a single string y.

Illustration

Idiom #53 Join a list of strings

Concatenate elements of string list x joined by the separator ", " to create a single string y.

Illustration
Code
val words = listOf("words", "in", "a", "list")
val combined = words.joinToString()