
20 Dec
2005
20 Dec
'05
10:09 p.m.
Chris Kuklewicz
Prelude> let { fac :: Integer -> Integer; fac 0 = 1; fac n | n > 0 = n * fac (n-1) }
As somebody made me aware just the other day, the bracer are only necessary for nested expressions. So you can just use ; for line breaks: Prelude> let fac :: Integer -> Integer; fac 0 = 1; fac n | n > 0 = n * fac (n-1) -k -- If I haven't seen further, it is by standing in the footprints of giants