Skip to content

Instantly share code, notes, and snippets.

@santanaguy
Created September 11, 2016 10:41
Left fold example C#
var l = new List<string> {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"};
var folded = l.Aggregate((state, item) => state + item);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment