Dzaima/APL: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
Line 21: | Line 21: | ||
dzaima/APL adds many new primitives and extensions to existing primitives, most taken from or inspired by [[Adám Brudzewsky]]'s experimental [[Extended Dyalog APL]], for example: | dzaima/APL adds many new primitives and extensions to existing primitives, most taken from or inspired by [[Adám Brudzewsky]]'s experimental [[Extended Dyalog APL]], for example: | ||
* < | * <syntaxhighlight lang=apl inline>⍮</source> [[Pair]] (<syntaxhighlight lang=apl inline>{⍺ ⍵}</source>) | ||
* < | * <syntaxhighlight lang=apl inline>⊇</source> [[Select]] (<syntaxhighlight lang=apl inline>⌷⍤0 99</source>) a.k.a. "sane indexing", i.e. select major cells | ||
* < | * <syntaxhighlight lang=apl inline>⍛</source> [[Reverse Compose]] (<syntaxhighlight lang=apl inline>{(⍺⍺ ⍺) ⍵⍵ ⍵}</source> — compare with <syntaxhighlight lang=apl inline>∘</source> which is <syntaxhighlight lang=apl inline>{⍺ ⍺⍺ (⍵⍵ ⍵)}</source> | ||
It also adds several unique additions from [[J]] and [[K]]: | It also adds several unique additions from [[J]] and [[K]]: | ||
* < | * <syntaxhighlight lang=apl inline>⍡</source> Cumulative repeat (like <syntaxhighlight lang=apl inline>⍣</source> but returns a list of iterations) | ||
* < | * <syntaxhighlight lang=apl inline>⍁</source> For each diagonal (J's <syntaxhighlight lang=apl inline>/.</source>) | ||
* < | * <syntaxhighlight lang=apl inline>ᐵ</source> and <syntaxhighlight lang=apl inline>ᑈ</source> Each-left and Each-right (K's <syntaxhighlight lang=apl inline>\:</source> and <syntaxhighlight lang=apl inline>/:</source>) | ||
As of 2019, this is the only APL with a native dedicated Android app. This app wraps APL in an interface akin to that of graphic calculators. | As of 2019, this is the only APL with a native dedicated Android app. This app wraps APL in an interface akin to that of graphic calculators. |
Revision as of 21:43, 10 September 2022
dzaima/APL is an implementation of APL in Java, created and maintained by dzaima. It is primarily based on Dyalog APL, but handles some parts of the language more strictly and includes additional primitive functions and operators while adding dictionaries as a native datatype. It also includes Processing integration.
dzaima/APL adds many new primitives and extensions to existing primitives, most taken from or inspired by Adám Brudzewsky's experimental Extended Dyalog APL, for example:
- <syntaxhighlight lang=apl inline>⍮</source> Pair (<syntaxhighlight lang=apl inline>{⍺ ⍵}</source>)
- <syntaxhighlight lang=apl inline>⊇</source> Select (<syntaxhighlight lang=apl inline>⌷⍤0 99</source>) a.k.a. "sane indexing", i.e. select major cells
- <syntaxhighlight lang=apl inline>⍛</source> Reverse Compose (<syntaxhighlight lang=apl inline>{(⍺⍺ ⍺) ⍵⍵ ⍵}</source> — compare with <syntaxhighlight lang=apl inline>∘</source> which is <syntaxhighlight lang=apl inline>{⍺ ⍺⍺ (⍵⍵ ⍵)}</source>
It also adds several unique additions from J and K:
- <syntaxhighlight lang=apl inline>⍡</source> Cumulative repeat (like <syntaxhighlight lang=apl inline>⍣</source> but returns a list of iterations)
- <syntaxhighlight lang=apl inline>⍁</source> For each diagonal (J's <syntaxhighlight lang=apl inline>/.</source>)
- <syntaxhighlight lang=apl inline>ᐵ</source> and <syntaxhighlight lang=apl inline>ᑈ</source> Each-left and Each-right (K's <syntaxhighlight lang=apl inline>\:</source> and <syntaxhighlight lang=apl inline>/:</source>)
As of 2019, this is the only APL with a native dedicated Android app. This app wraps APL in an interface akin to that of graphic calculators.
External Links
APL dialects [edit] | |
---|---|
Maintained | APL+Win ∙ APL2 ∙ APL64 ∙ APL\iv ∙ Aplette ∙ April ∙ Co-dfns ∙ Dyalog APL ∙ dzaima/APL ∙ Extended Dyalog APL ∙ GNU APL ∙ KAP ∙ NARS2000 ∙ Pometo |
Historical | A Programming Language ∙ A+ (A) ∙ APL# ∙ APL\360 ∙ APL/700 ∙ APL\1130 ∙ APL\3000 ∙ APL.68000 ∙ APL*PLUS ∙ APL.jl ∙ APL.SV ∙ APLX ∙ Iverson notation ∙ IVSYS/7090 ∙ NARS ∙ ngn/apl ∙ openAPL ∙ Operators and Functions ∙ PAT ∙ Rowan ∙ SAX ∙ SHARP APL ∙ Rationalized APL ∙ VisualAPL (APLNext) ∙ VS APL ∙ York APL |
Derivatives | AHPL ∙ BQN ∙ CoSy ∙ ELI ∙ Glee ∙ I ∙ Ivy ∙ J ∙ Jelly ∙ Jellyfish ∙ K (Q, KDB+) ∙ Lang5 ∙ Nial ∙ RAD |
Overviews | Timeline of array languages ∙ Timeline of influential array languages ∙ Family tree of array languages |