Pascal's triangle: Difference between revisions
m
→{{header|Haskell}}: Tidied, used an applicative
(Keep the same logic but add code to display the triangle in a nicer way.) |
m (→{{header|Haskell}}: Tidied, used an applicative) |
||
Line 2,556:
<lang haskell>fac = product . enumFromTo 1
binCoef n k =
pascal
Example:
|