
1 Apr
2007
1 Apr
'07
10:58 a.m.
On 31/03/07, Bryan Burgers
As a matter of style suggestion, it might make 'binom' more clear if you use 'div' as an infix operator:
binom n j = (fac n) `div` ( fac j * fac (n - j) )
You can even drop the first set of parentheses: binom n r = fac n `div` (fac r * fac (n - r)) Remember that prefix function application has a higher precedence than pretty much anything else. -- -David House, dmhouse@gmail.com