Main Page: Difference between revisions

Jump to navigation Jump to search
10 bytes added ,  12:27, 25 October 2019
Miraheze>Adám Brudzewsky
Miraheze>Marshall
Line 33: Line 33:
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=apl>
<source lang=apl>
       ','(≠⊆⊢)'comma,delimited,text'
       ','(≠⊆⊢)'comma,delimited,text'
┌─────┬─────────┬────┐
┌─────┬─────────┬────┐
│comma│delimited│text│
│comma│delimited│text│
└─────┴─────────┴────┘
└─────┴─────────┴────┘
</pre>
</source>
{{Works in|[[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" ===
[[John Scholes]] is famous for the following implementation of Conway's "Game of Life":
[[John Scholes]] is famous for the following implementation of Conway's "Game of Life":
<pre class=apl>
<source lang=apl>
       ⎕←world←2 2 2 2⊤0 12 5 2 4 1
       ⎕←world←2 2 2 2⊤0 12 5 2 4 1
0 1 0 0 0 0
0 1 0 0 0 0
Line 54: Line 54:
0 1 0 1 1 0
0 1 0 1 1 0
0 0 1 0 0 0
0 0 1 0 0 0
</pre>
</source>
{{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