Nathaniel
0
Q:

pattern matching in haskell

factorial :: (Integral a) => a -> a  
factorial 0 = 1  
factorial n = n * factorial (n - 1)  
0

New to Communities?

Join the community