Simple examples: Difference between revisions
Jump to navigation
Jump to search
Miraheze>Adám Brudzewsky No edit summary |
Miraheze>Adám Brudzewsky No edit summary |
||
Line 1: | Line 1: | ||
This page will contain examples that serve well to show APL's strength. They require minimal background and have no special dependencies. | This page will contain examples that serve well to show APL's strength. They require minimal background and have no special dependencies. | ||
==Text processing== | |||
APL represents text as character lists (vectors), making many text operations trivial. | |||
=== Indices of multiple elements === | === Indices of multiple elements === | ||
<code class="apl">∊</code> gives us a mask for elements (characters) in the left argument that are members of the right argument: | <code class="apl">∊</code> gives us a mask for elements (characters) in the left argument that are members of the right argument: | ||
<pre class=apl> | <pre class=apl> |