4> lists:foldl(fun(X, Sum) -> X + Sum end, 0, L). 6