Functional programming with Linq – IEnumerable.Aggregate
As I was learning functional programming with F# I came across the List.reduce function which iterates through a list and builds up an accumulator value by running another function against each element in the list. Back to the more familiar C# territory, LINQ has introduced some functional features to C# and one of these is …
Functional programming with Linq – IEnumerable