LINQ Aggregate Method Explained with Pictures

from blog Just Some Code, | ↗ original
This is not one of the most used LINQ methods. We won’t use it every day. But, it’s handy for some scenarios. Let’s learn how to use the Aggregate method. The Aggregate method applies a function on a collection carrying the result to the next element. It “aggregates” the result of a function over a collection. The Aggregate method takes two...