Pascal's triangle: Difference between revisions

Content added Content deleted
Line 2,333: Line 2,333:


return a
return a
.concat([zipWith(
.concat([zipWith((a, b) => a + b,
(a, b) => a + b, [0].concat(lstPreviousRow),
[0].concat(lstPreviousRow),
lstPreviousRow.concat(0)
lstPreviousRow.concat(0)
)]);
)]);
Line 2,372: Line 2,372:
indent: ''
indent: ''
}).rows;
}).rows;

})();</lang>
})();</lang>