Logo

Programming-Idioms

History of Idiom 53 > diff from v34 to v35

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

Version 34

2016-02-17, 22:56:24

Version 35

2016-02-18, 16:58:00

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
(clojure.string/join "," '("abc" "def" "ghi") )
Code
val y = x.mkString(",")
Code
val y = x.mkString(",")