Why is there no ForEach extension method on IEnumerable?
Asked 07 September, 2021
Viewed 2.6K times
  • 62
Votes

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?

21 Answer