using System;
using System.Collections.Generic;
using System.Collections;
publicstaticclass CollectionUtils
{
publicstatic T[] Join<T>(params IEnumerable<T>[] srcs)
{
if (srcs.Length == 0)
returnnew T[0];
List<T> res = new List<T>(srcs[0]);
for (int i = 1; i < srcs.Length; i++)
res.AddRange(srcs[i]);
return res.ToArray();
}
}