Main Page: Difference between revisions
Jump to navigation
Jump to search
Miraheze>RikedyP No edit summary |
Miraheze>Adám Brudzewsky No edit summary |
||
Line 38: | Line 38: | ||
| colspan="2" style="border:1px solid #e2e2e2;padding:0 1em" | | | colspan="2" style="border:1px solid #e2e2e2;padding:0 1em" | | ||
<h2 style="margin:0.75em 0; background:#eeeeee; border:1px solid #ddd; color:#222; padding:0.2em 0.4em; font-size:120%; font-weight:bold; font-family:inherit;">Examples</h2> | <h2 style="margin:0.75em 0; background:#eeeeee; border:1px solid #ddd; color:#222; padding:0.2em 0.4em; font-size:120%; font-weight:bold; font-family:inherit;">Examples</h2> | ||
APL's terseness means that substantial programs are expressible in a small space, relative to many other programming languages. | APL's terseness means that substantial programs are expressible in a small space, relative to many other programming languages. Below are just a taste. Many more, and fully explained, examples are in [[Examples|the main examples article]]. | ||
=== Split text by delimiter === | === Split text by delimiter === | ||
With the introduction of [[tacit]] programming, many functions can be expressed in fewer characters that even the shortest fitting name. For example <source lang=apl inline>≠⊆⊢</source> is but three characters, but would need five for the name <code>Split</code>: | |||
[https://tryapl.org/?a=%27%2C%27%28%u2260%u2286%u22A2%29%27comma%2Cdelimited%2Ctext%27&run Try it now!] | [https://tryapl.org/?a=%27%2C%27%28%u2260%u2286%u22A2%29%27comma%2Cdelimited%2Ctext%27&run Try it now!] | ||
<source lang=apl> | <source lang=apl> |