Leading axis theory: Difference between revisions

Jump to navigation Jump to search
264 bytes added ,  21:53, 9 December 2019
m (→‎Adoption in APL: Swap two table rows)
Line 53: Line 53:
|}
|}


[[Index Of]] in [[SHARP APL]] was not extended to apply to left argument [[major cell]]s as in J and Dyalog; instead it was given rank <source lang=apl inline>1 0</source> making such a change impossible. The leading-axis extension of scalar dyadics in SHARP is a direct consequence of given them a function rank 0, as SHARP's concept of function rank includes [[leading axis agreement]].
[[Index Of]] in [[SHARP APL]] was not extended to apply to left argument [[major cell]]s as in J and Dyalog; instead it was given rank <source lang=apl inline>1 0</source> making such a change impossible. In [[A+]] not only [[Index Of]] but also [[Membership]] was changed to follow the leading axis model, breaking compatibility with other APLs. A+ also restricts [[Take]] and [[Drop]] to allow only a [[singleton]] left argument (but any right argument rank is permitted). The leading-axis extension of scalar dyadics in SHARP is a direct consequence of given them a function rank 0, as SHARP's concept of function rank includes [[prefix agreement]].


== History ==
== History ==

Navigation menu