using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
+using System.Linq.Expressions;
using System.Text;
namespace Pithos.Core
yield return array[i];
}
+ public static void ApplyAction<T>(this IEnumerable<T> list,Action<T> action)
+ {
+ if (list == null)
+ return;
+
+ foreach (var item in list)
+ {
+ action(item);
+ }
+ }
+
}
}