1
0
mirror of synced 2024-11-24 04:20:10 +01:00
TaikoSoundEditor/Commons/Extensions/EnumerableExtensions.cs

20 lines
500 B
C#
Raw Permalink Normal View History

2023-10-01 18:40:41 +02:00
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);
}
}
}