Jump to content

Pascal's triangle: Difference between revisions

(Updated second and third D entries)
Line 580:
[lists:zipwith(fun(X,Y)->X+Y end,[0]++H,H++[0])|L].
</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}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.