Logo

Programming-Idioms

History of Idiom 53 > diff from v32 to v33

Edit summary for version 33 by :
[Scala] x is given, no need to create it

Version 32

2016-02-16, 21:42:56

Version 33

2016-02-17, 09:44:37

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(",")
Code
val y = x.mkString(",")