Pascal's triangle: Difference between revisions
→Functional (ES5)
(→Functional (ES5): Simpler Pascal function (translating one of the Haskell versions)) |
|||
Line 2,188:
function (a, b) {
return a + b
},
[0].concat(lstPreviousRow),
lstPreviousRow.concat(0)
)]
|