Why is there no ForEach extension method on IEnumerable?
Inspired by another question asking about the missing Zip
function:
Why is there no ForEach
extension method on the IEnumerable
interface? Or anywhere? The only class that gets a ForEach
method is List<>
. Is there a reason why it's missing, maybe performance?