16 lines
432 B
C#
16 lines
432 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Beam.Temporary.Cli {
|
|
public static class StringExtensions {
|
|
public static string Aggregate(this IEnumerable<string> str, string separator) {
|
|
if (!str.Any())
|
|
return string.Empty;
|
|
return str.Aggregate((x, y) => $"{x}{separator}{y}");
|
|
}
|
|
}
|
|
}
|