mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
15 lines
314 B
C#
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;
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|