Take: Difference between revisions

Jump to navigation Jump to search
710 bytes added ,  13:06, 18 October 2019
Add extension support across languages
Miraheze>Marshall
Miraheze>Marshall
(Add extension support across languages)
Line 102: Line 102:


[[SHARP APL 19.0]], released in 1987, extended Take to allow short left arguments. The choice to align left argument elements with the leading axes of the right argument was made according to the nascent [[leading axis theory]]: while a user may not have any preference for manipulating the earlier dimensions, this choice makes Take more flexible when used with the [[Rank operator]].<ref>Bernecky, Robert. [https://dl.acm.org/citation.cfm?id=55632 "An Introduction to Function Rank"]. APL88 Conference Proceedings. ''ACM SIGAPL Quote Quad'', 18(2), December 1987.</ref> This extension is also used in [[Dyalog APL]], [[J]], and [[ngn/APL]]. It was not adopted in [[ISO/IEC 13751:2001]].
[[SHARP APL 19.0]], released in 1987, extended Take to allow short left arguments. The choice to align left argument elements with the leading axes of the right argument was made according to the nascent [[leading axis theory]]: while a user may not have any preference for manipulating the earlier dimensions, this choice makes Take more flexible when used with the [[Rank operator]].<ref>Bernecky, Robert. [https://dl.acm.org/citation.cfm?id=55632 "An Introduction to Function Rank"]. APL88 Conference Proceedings. ''ACM SIGAPL Quote Quad'', 18(2), December 1987.</ref> This extension is also used in [[Dyalog APL]], [[J]], and [[ngn/APL]]. It was not adopted in [[ISO/IEC 13751:2001]].
== Extension support ==
{| class=wikitable
! Language                !! Scalar right arg !! Short left arg !! Axis specification
|-
| [[APL\360]]            || ?                || N              || N
|-
| [[APL2]]                || Y                || N              || Y
|-
| [[SHARP APL]]          || Y                || Y              || Y
|-
| [[Dyalog APL]]          || Y                || Y              || Y
|-
| [[J]] (<code>{.</code>) || Y                || Y              || N
|-
| [[GNU APL]]            || Y                || N              || Y
|-
| [[ngn/apl]]            || Y                || Y              || N
|-
| [[dzaima/APL]]          || N                || Y              || N
|}


== Documentation ==
== Documentation ==
Anonymous user

Navigation menu