Dzaima/APL: Difference between revisions

From APL Wiki
Jump to navigation Jump to search
Miraheze>Adám Brudzewsky
m (Text replacement - "<code>" to "<source lang=apl inline>")
Miraheze>Adám Brudzewsky
m (Text replacement - "</code>" to "</source>")
Line 23: Line 23:
dzaima/APL adds many new primitives and extensions to existing primitives, most taken from or inspired by Adám Brudzewsky's experimental [https://github.com/abrudz/dyalog-apl-extended#content 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 [https://github.com/abrudz/dyalog-apl-extended#content Extended Dyalog APL], for example:


* <source lang=apl inline>⍮</code> Juxtapose (<source lang=apl inline>{⍺ ⍵}</code>)
* <source lang=apl inline>⍮</source> Juxtapose (<source lang=apl inline>{⍺ ⍵}</source>)
* <source lang=apl inline>⊇</code> Select (<source lang=apl inline>⌷⍤0 99</code>) a.k.a. "sane indexing", i.e. select major cells
* <source lang=apl inline>⊇</source> Select (<source lang=apl inline>⌷⍤0 99</source>) a.k.a. "sane indexing", i.e. select major cells
* <source lang=apl inline>⍛</code> Reverse compose (<source lang=apl inline>{(⍺⍺ ⍺) ⍵⍵ ⍵}</code> — compare with <source lang=apl inline>∘</code> which is <source lang=apl inline>{⍺ ⍺⍺ (⍵⍵ ⍵)}</code>
* <source lang=apl inline>⍛</source> Reverse compose (<source lang=apl inline>{(⍺⍺ ⍺) ⍵⍵ ⍵}</source> — compare with <source lang=apl inline>∘</source> which is <source lang=apl inline>{⍺ ⍺⍺ (⍵⍵ ⍵)}</source>


It also adds several unique additions from [[J]] and [[K]]:
It also adds several unique additions from [[J]] and [[K]]:


* <source lang=apl inline>⍡</code> Cumulative repeat (like <source lang=apl inline>⍣</code> but returns a list of iterations)
* <source lang=apl inline>⍡</source> Cumulative repeat (like <source lang=apl inline>⍣</source> but returns a list of iterations)
* <source lang=apl inline>⍁</code> For each diagonal (J's <source lang=apl inline>/.</code>)
* <source lang=apl inline>⍁</source> For each diagonal (J's <source lang=apl inline>/.</source>)
* <source lang=apl inline>ᐵ</code> and <source lang=apl inline>ᑈ</code> Each-left and Each-right (K's <source lang=apl inline>\:</code> and <source lang=apl inline>/:</code>)
* <source lang=apl inline>ᐵ</source> and <source lang=apl inline>ᑈ</source> Each-left and Each-right (K's <source lang=apl inline>\:</source> and <source lang=apl inline>/:</source>)


[[File:Dzaima-APL Andoid App.png|thumb|left|dzaima/APL Android App]] As of 2019, dzaima/APL is the only APL with a native dedicated Android app. This app wraps APL in an interface akin to that of graphic calculators.
[[File:Dzaima-APL Andoid App.png|thumb|left|dzaima/APL Android App]] As of 2019, dzaima/APL 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 09:07, 29 October 2019


For technical reasons, this page is named "Dzaima/APL". The actual name of the implementation is "dzaima/APL".".

dzaima/APL is an implementation of APL in Java, created and maintained by Stack Exchange user 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:

  • Juxtapose ({⍺ ⍵})
  • Select (⌷⍤0 99) a.k.a. "sane indexing", i.e. select major cells
  • Reverse compose ({(⍺⍺ ⍺) ⍵⍵ ⍵} — compare with which is {⍺ ⍺⍺ (⍵⍵ ⍵)}

It also adds several unique additions from J and K:

  • Cumulative repeat (like but returns a list of iterations)
  • For each diagonal (J's /.)
  • and Each-left and Each-right (K's \: and /:)
dzaima/APL Android App

As of 2019, dzaima/APL 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

Template:APL programming language