Pascal's triangle: Difference between revisions

m
→‎{{header|APL}}: fix subheaders
(Updated Dyalog APL's answer/example to format Pascal's Triangle better)
m (→‎{{header|APL}}: fix subheaders)
Line 311:
=={{header|APL}}==
Pascal' s triangle of order ⍵
=== Dyalog APL ===
 
 
== Dyalog APL ==
<lang apl>
{⍕0~¨⍨(-⌽A)⌽↑,/0,¨⍉A∘.!A←0,⍳⍵}
Line 332 ⟶ 330:
1 5 10 10 5 1
</pre>
=== GNU APL ===
 
 
== GNU APL ==
GNU APL doesn't allow multiple statements within lambdas so the solution is phrased differently:
 
2,095

edits