How to get list of intermediate sums in a functional way? Using LINQ?
Given a list of objects i need to return a list consisting of the objects and the sum of a property of the objects for all objects in the list seen so far.  

More generally given

    var input = new int[] {1,2,3}

I would like to have the output of

    var output = { (1,1), (2,3), (3,6) }; // does not compile but did not want to include extra classes.

What is the "right" functional way to do this?  I can do it in a standard iterative approach of course but I am looking for how this would be done in a functional, lazy way.

Thanks
  
How to get list of intermediate sums in a functional way? Using LINQ?
===

Given a list of objects i need to return a list consisting of the objects and the sum of a property of the objects for all objects in the list seen so far.  

More generally given

    var input = new int[] {1,2,3}

I would like to have the output of

    var output = { (1,1), (2,3), (3,6) }; // does not compile but did not want to include extra classes.

What is the "right" functional way to do this?  I can do it in a standard iterative approach of course but I am looking for how this would be done in a functional, lazy way.

Thanks
  