We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd6dff6 commit b08b398Copy full SHA for b08b398
docs/concepts/linq.rst
@@ -130,7 +130,8 @@ The following is a quick demonstration of some of the essential pieces of LINQ.
130
select dog.TurnIntoACat();
131
132
// Summing then lengths of a set of strings
133
- int sumOfStrings = strings.Aggregate((s1, s2) => s1.Length + s2.Length);
+ int seed = 0;
134
+ int sumOfStrings = strings.Aggregate(seed, (s1, s2) => s1.Length + s2.Length);
135
136
* Flattening a list of lists:
137
0 commit comments