
5 Feb
2007
5 Feb
'07
noon
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
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