\begin{slide}{Fold/Besucher in C\#}

fold für Listen $=$ System.Linq.Aggregate

\begin{verbatim}
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));
\end{verbatim}

\end{slide}

