Simple examples: Difference between revisions

From APL Wiki
Jump to navigation Jump to search
Miraheze>Adám Brudzewsky
(Created page with "This page will contain examples that serve well to show APL's strength. They require minimal background and have no special dependencies. === Parenthesis nesting level === <pr...")
 
Miraheze>Adám Brudzewsky
Line 6: Line 6:
</pre>
</pre>
{{APL programming language}}
{{APL programming language}}
=== Indices of multiple elements
<pre class=apl>
      'mississippi'(⍸∊)'sp'
3 4 6 7 9 10
</pre>

Revision as of 15:20, 10 October 2019

This page will contain examples that serve well to show APL's strength. They require minimal background and have no special dependencies.

Parenthesis nesting level

      +\-⌿'()'∘.='plus(square(a),plus(square(b),times(2,plus(a,b)))'
0 0 0 0 1 1 1 1 1 1 1 2 2 1 1 1 1 1 1 2 2 2 2 2 2 2 3 3 2 2 2 2 2 2 2 3 3 3 3 3 3 3 4 4 4 4 3 2 1

Template:APL programming language === Indices of multiple elements

      'mississippi'(⍸∊)'sp'
3 4 6 7 9 10