Преглед на файлове

exercise 5.13: factorial function with productt

George C. Privon преди 1 година
родител
ревизия
303ebdb808
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      05-Lists/exercises/ex5.13.hs

+ 6 - 0
05-Lists/exercises/ex5.13.hs

@@ -0,0 +1,6 @@
+-- Exercise 5.13
+-- George C. Privon
+-- 2024-07-20
+
+fact :: Integer -> Integer
+fact n = product [1..n]