瀏覽代碼

Make the foldable sum working on every num

DricomDragon 5 年之前
父節點
當前提交
f53d73f50a
共有 1 個文件被更改,包括 1 次插入1 次删除
  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