Selaa lähdekoodia

Make the foldable sum working on every num

DricomDragon 5 vuotta sitten
vanhempi
commit
f53d73f50a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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