Created
September 11, 2016 10:41
Left fold example C#
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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