Fold/Besucher in C#

fold für Listen = System.Linq.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));



Johannes Waldmann 2011-07-07