📜  haskell 代码示例中的模式匹配

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

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