On 31/03/07, Bryan Burgers <[EMAIL PROTECTED]> wrote:
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, [EMAIL PROTECTED]
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to