소스 검색

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