Funktionale Programmierung in C#

foldr = Aggregate

import System.Linq;
import System.Collections.Generic;

List<int> l = 
    new List<int>() { 3,1,4,1,5,9 };
Console.WriteLine 
    (l.Aggregate(0, (x,y) => x+y));



2009-06-15