Explorar o código

Make the foldable sum working on every num

DricomDragon %!s(int64=5) %!d(string=hai) anos
pai
achega
f53d73f50a
Modificáronse 1 ficheiros con 1 adicións e 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