Adding C# solution.
[IEnumerableExtras.git] / C# / EnumerableJoin.cs
blob22b93d9d5db13de9e0e1158a87f750df8bd31fd3
1 using System.Collections.Generic;
2 using System.Text;
4 namespace IEnumerableExtras
6 public static class EnumerableJoin
8 public static string Join< T >( this IEnumerable<T> enumerable, string glue )
10 return enumerable.Reduce( new StringBuilder(), ( sb, item ) => sb.Append( item ).Append( glue ) ).ToString();