This commit is contained in:
Alexandru Macocian
2021-04-23 10:49:50 +02:00
@@ -58,5 +58,14 @@ namespace System.Extensions
return -1;
}
public static IEnumerable<T> Do<T>(this IEnumerable<T> enumerable, Action<T> action)
{
foreach(var value in enumerable)
{
action(value);
yield return value;
}
}
}
}