Take: Difference between revisions

Jump to navigation Jump to search
963 bytes added ,  12:44, 17 October 2019
Miraheze>Marshall
m (→‎Examples: class=apl)
Miraheze>Marshall
Line 76: Line 76:
== History ==
== History ==


Take was present in [[APL\360]], but not in [[A Programming Language]], where the symbol (<code>↑</code>) was used for [[Rotate]].
Take was present in [[APL\360]], but not in [[A Programming Language]], where the symbol (<code>↑</code>) was used for [[Rotate]].<ref>Iverson, Kenneth E. (1962). A Programming Language. Wiley. ISBN 978-0-471-43014-8.</ref>
 
The [[Function axis|axis]] specification for Take was defined in [[APL2]]. It is shared by [[SHARP APL]] and [[Rationalized APL]], and continues to be supported in [[Dyalog APL]].
 
[[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 the [[XAPL standard]].
Anonymous user

Navigation menu