📜  haskell 代码示例中的阶乘程序

📅  最后修改于: 2022-03-11 14:53:35.034000             🧑  作者: Mango

代码示例1
factorial :: Integer -> Integer
factorial 0 = 1
factorial n = n * factorial (n - 1)