Write 8 essentially diferent functions that compute the
factorial of a natural number in Haskell. You can use recursion, final
recursion, no recursion, guards, if then else,
map, folds, infinite lists...
You should define the following functions:
fact1 :: Integer -> Integer
fact2 :: Integer -> Integer
fact3 :: Integer -> Integer
fact4 :: Integer -> Integer
fact5 :: Integer -> Integer
fact6 :: Integer -> Integer
fact7 :: Integer -> Integer
fact8 :: Integer -> Integer
Author: Unknown
Translator: Jordi Petit
Generation: 2026-02-03T17:02:20.326Z
© Jutge.org, 2006–2026.
https://jutge.org