Logo

Programming-Idioms

History of Idiom 53 > diff from v31 to v32

Edit summary for version 32 by :
New Scala implementation by user [meshelton]

Version 31

2016-02-16, 19:23:26

Version 32

2016-02-16, 21:42:56

Idiom #53 Join a list of strings

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

Idiom #53 Join a list of strings

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

Code
val x = List("a", "b", "c")
val y = x.mkString(",")