APL Bridge Examples

From ZCubes Wiki
Jump to navigation Jump to search

APL Bridge Examples

Refer to [| Simple APL Examples to try in Z]

For example, try:

'abcd' ∘.= 'cabbage'


String Inspection

Pascal Triangle

Example: Pascal Triangle in APL

[Wiki Samples]

Pascal ← {' '@(0=⊢)↑0,⍨¨a⌽¨⌽∊¨0,¨¨a∘!¨a←⌽⍳⍵} ⍝ Create a one-line user function called Pascal

Pascal 7                            ⍝ Run function Pascal for seven rows and show the results below: