View Problem

Join the elements of a list, separated by commas

Given the list [Apple, Banana, Carrot] produce "Apple, Banana, Carrot"
DiskEdit
python
print ", ".join(['Apple', 'Banana', 'Carrot'])
DiskEdit
clojure
(apply str (interpose ", " '("Apple" "Banana" "Carrot")))
DiskEdit
csharp .NET 3.5
using System.Collections.Generic;
public class JoinEach {
public static void Main() {
var list = new List<string>() {"Apple", "Banana", "Carrot"};
System.Console.WriteLine( string.Join(", ", list.ToArray()) );
}
}

Submit a new solution for python, clojure, or csharp
There are 26 other solutions in additional languages (cpp, erlang, fantom, fsharp ...)