Explorar el Código

Make the foldable sum working on every num

DricomDragon hace 5 años
padre
commit
f53d73f50a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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