Logo

Programming-Idioms

History of Idiom 53 > diff from v37 to v38

Edit summary for version 38 by :
[Ruby] varaiable name x, not list

Version 37

2016-02-20, 07:00:07

Version 38

2016-04-12, 20:21:13

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
y = list.join(", ")
Code
y = x.join(", ")
Doc URL
http://ruby-doc.org/core-2.2.3/Array.html#method-i-join
Doc URL
http://ruby-doc.org/core-2.2.3/Array.html#method-i-join