Dzaima/APL: Difference between revisions

Jump to navigation Jump to search
288 bytes added ,  09:06, 29 October 2019
m
Text replacement - "<code>" to "<source lang=apl inline>"
Miraheze>Adám Brudzewsky
No edit summary
Miraheze>Adám Brudzewsky
m (Text replacement - "<code>" to "<source lang=apl inline>")
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:


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


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


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


[[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.

Navigation menu