6 Feb
2007
6 Feb
'07
1 a.m.
If I understand you correctly, this should do it: sums :: Num a => [[a]] -> a sums l = sum [sum p | p <- l] -Eric On 2/5/07, Miranda Kajtazi <mirandakajtazi@gmail.com> wrote:
Help,
How to calculate the sum of list of lists in Haskell? Please help me, Miranda
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe