wabbajack/Wabbajack.Common/Enumerable.cs
2020-04-03 16:37:27 -06:00

15 lines
314 B
C#

using System.Collections.Generic;
namespace Wabbajack.Common
{
public static partial class Utils
{
public static IEnumerable<T> Cons<T>(this IEnumerable<T> coll, T next)
{
yield return next;
foreach (var itm in coll) yield return itm;
}
}
}