Pascal's triangle: Difference between revisions

Content added Content deleted
(Added Quackery.)
Line 312: Line 312:
Pascal' s triangle of order ⍵
Pascal' s triangle of order ⍵



== Dyalog APL ==
<lang apl>
<lang apl>
{A←0,⍳⍵ ⋄ ⍉A∘.!A}
{A←0,⍳⍵ ⋄ ⍉A∘.!A}
Line 320: Line 322:
<lang apl>
<lang apl>
{A←0,⍳⍵ ⋄ ⍉A∘.!A} 3
{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>
</lang>