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