Logo

Programming-Idioms

History of Idiom 53 > diff from v40 to v41

Edit summary for version 41 by programming-idioms.org:
[Elixir] Variable x. +DocURL. +DemoURL.

Version 40

2016-10-07, 11:41:52

Version 41

2016-11-30, 21:15:43

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
y = Enum.join(list, ", ")
Code
y = Enum.join(x, ", ")
Doc URL
http://elixir-lang.org/docs/stable/elixir/Enum.html#join/2
Demo URL
http://play.elixirbyexample.com/s/45c797025f