Pascal's triangle: Difference between revisions
Content added Content deleted
Line 580: | Line 580: | ||
[lists:zipwith(fun(X,Y)->X+Y end,[0]++H,H++[0])|L]. |
[lists:zipwith(fun(X,Y)->X+Y end,[0]++H,H++[0])|L]. |
||
</lang> |
</lang> |
||
Output: |
Output: |
||
Eshell V5.5.5 (abort with ^G) |
Eshell V5.5.5 (abort with ^G) |
||
1> pascal:pascal(5). |
1> pascal:pascal(5). |
||
[[1,4,6,4,1],[1,3,3,1],[1,2,1],[1,1],[1]] |
[[1,4,6,4,1],[1,3,3,1],[1,2,1],[1,1],[1]] |
||
=={{header|Euphoria}}== |
=={{header|Euphoria}}== |