Pascal's triangle: Difference between revisions
→{{header|APL}}
(Added Quackery.) |
|||
Line 312:
Pascal' s triangle of order ⍵
== Dyalog APL ==
<lang apl>
{A←0,⍳⍵ ⋄ ⍉A∘.!A}
Line 320 ⟶ 322:
<lang apl>
{A←0,⍳⍵ ⋄ ⍉A∘.!A} 3
</lang>
<pre>
1 0 0 0
1 1 0 0
1 2 1 0
1 3 3 1
</pre>
== GNU APL ==
<lang apl>
{⍉⍵∘.!⍵}({0,⍳⍵})
</lang>
example
<lang apl>
{⍉⍵∘.!⍵}({0,⍳⍵}) 3
</lang>
|