I\'m trying to find a better way of processing a sequence of numbers based on the following requirement: the value of sequence[i] is the sum of its own value pl
sequence[i]
A non-LINQ version, just to be different:
List GetSums(List values) { List sums = new List(); double total = 0; foreach(double d in values) { total += d; sums.Add(total); } return sums; }