1
0
mirror of synced 2024-11-23 20:10:57 +01:00
TaikoSoundEditor/Commons/Extensions/EnumerableExtensions.cs
2023-10-01 19:40:41 +03:00

20 lines
500 B
C#

using System;
using System.Collections.Generic;
namespace TaikoSoundEditor.Commons.Extensions
{
internal static class EnumerableExtensions
{
/*public static IEnumerable<T> Prepend<T>(this IEnumerable<T> items, T item)
{
yield return item;
foreach (var i in items) yield return i;
}*/
public static void ForEach<T>(this IEnumerable<T> items, Action<T> a)
{
foreach (var item in items) a(item);
}
}
}