Main Page: Difference between revisions

Jump to navigation Jump to search
169 bytes removed ,  11:59, 19 September 2019
Miraheze>RikedyP
No edit summary
Miraheze>RikedyP
Line 26: Line 26:
APL's terseness means that substantial programs are expressable in a small space, relative to many other programming languages. Here are some examples:
APL's terseness means that substantial programs are expressable in a small space, relative to many other programming languages. Here are some examples:
=== Split text by delimiter ===
=== Split text by delimiter ===
<pre class="language-apl">','(≠⊆⊢)'comma,delimited,text'</pre>
{{pre apl|      ','(≠⊆⊢)'comma,delimited,text'
{{Works in|[[Dyalog APL]], [[dzaima/APL]], [[NARS2000]], [[ngn/apl]]}}
=== Test function ===
{{aplpre|      ','(≠⊆⊢)'comma,delimited,text'
┌─────┬─────────┬────┐
┌─────┬─────────┬────┐
│comma│delimited│text│
│comma│delimited│text│
└─────┴─────────┴────┘
└─────┴─────────┴────┘}}
|[[Dyalog APL]], [[dzaima/APL]], [[NARS2000]], [[ngn/apl]]}}
{{Works in|[[Dyalog APL]], [[dzaima/APL]], [[NARS2000]], [[ngn/apl]]}}
=== Conway's "Game of Life" ===
=== Conway's "Game of Life" ===
<pre class="language-apl">{↑1 ⍵∨.∧3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵}</pre>
{{pre apl|{↑1 ⍵∨.∧3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵}}}
{{Works in|[[Dyalog APL]], [[dzaima/APL]], [[GNU APL]], [[NARS2000]], [[ngn/apl]]}}
{{Works in|[[Dyalog APL]], [[dzaima/APL]], [[GNU APL]], [[NARS2000]], [[ngn/apl]]}}


{{APL programming language}}
{{APL programming language}}
{{APL community}}
{{APL community}}
Anonymous user

Navigation menu