Pascal's triangle: Difference between revisions

Content added Content deleted
(Updated second and third D entries)
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:
Eshell V5.5.5 (abort with ^G)
1> pascal:pascal(5).
[[1,4,6,4,1],[1,3,3,1],[1,2,1],[1,1],[1]]


=={{header|Euphoria}}==
=={{header|Euphoria}}==