wabbajack/Wabbajack.Common/Enumerable.cs

15 lines
314 B
C#
Raw Normal View History

2020-03-23 12:57:18 +00:00
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;
}
}
}