Browse Source

Make the foldable sum working on every num

DricomDragon 5 năm trước cách đây
mục cha
commit
f53d73f50a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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