Ver Fonte

Make the foldable sum working on every num

DricomDragon há 5 anos atrás
pai
commit
f53d73f50a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      fold.hs

+ 1 - 1
fold.hs

@@ -1,4 +1,4 @@
 -- Exercice from slide 46
 
-fsum::[Integer] -> Integer
+fsum::Num a => [a] -> a
 fsum = foldl (+) 0